-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
Summary
gocsi.sh assumes GOPATH is a single value
Bug Reports
the generator script doesn't handle GOPATH gracefully when multiple entries are present, which is the default:
$ go help gopath
[snip]
The GOPATH environment variable lists places to look for Go code.
On Unix, the value is a colon-separated string.
On Windows, the value is a semicolon-separated string.
On Plan 9, the value is a list.Version
Expected Behavior
gopath should be respected
Actual Behavior
gopath is not respected
Steps To Reproduce
$ export GOPATH=/path/to/personal:/path/to/global:/random/other/path
$ bash gocsi.sh github.com/username/reponame
$ ls /path/to/personal\:/path/to/global\:/random/other/path/src/github.com/username/reponameIt blindly injects GOPATH
Logs
nope
Metadata
Metadata
Assignees
Labels
No labels