Lets assume that running go install -v importpath builds an executable and installs it into $GOPATH/bin/program. The go tool is unable
GOPATH environment variable
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.
Therefore, $GOPATH/bin/program and $GOPATH/src/importpath are not necessarily valid. For example, on Linux,
$ GOPATH=$HOME/gopath:$HOME/go
$ cd $GOPATH/bin/go
bash: cd: /home/peter/gopath:/home/peter/go/bin/go: No such file or directory