Skip to content

gocsi.sh assumes GOPATH is a single value #148

@cornfeedhobo

Description

@cornfeedhobo

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

632c7b6c

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/reponame

It blindly injects GOPATH

Logs

nope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions