]> Cypherpunks repositories - gostls13.git/commit
cmd/go: ignore empty path elements in GOPATH
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 21 Sep 2017 02:33:11 +0000 (12:33 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 24 Sep 2017 01:41:21 +0000 (01:41 +0000)
commit18b49db18e02c1590119eeda58673bf93c2e41c9
tree9b9d74217fa6133522252809dd7a3e45b1db6945
parente6358c798b3001e98b6f7f4c3e2d906cf48533b2
cmd/go: ignore empty path elements in GOPATH

go command refuses to use GOPATH with empty path elements
(like %GOPATH%=C:\go;). But environment variable change dialog
on Windows 10 produces strings ending with ; (see issue #21928
for a picture). Just accept GOPATH with empty path elements,
and ignore all empty path elements.

Fixes #21928

Change-Id: I1d3c3a19274ed69204d29ae06c3e8ff8c57c1ca0
Reviewed-on: https://go-review.googlesource.com/65151
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/main.go