We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using go version go1.5.1 darwin/amd64.
go version go1.5.1 darwin/amd64
I've tried:
$ GOBIN=. go install $ echo $? 0 $ ./foo -bash: ./foo: No such file or directory
And the process exited with status 0 (success), but there was nothing written to current folder.
When I used an absolute path for GOBIN, it worked as expected:
$ GOBIN=`pwd` go install $ echo $? 0 $ ./foo
From https://tip.golang.org/cmd/go/:
If the GOBIN environment variable is set, commands are installed to the directory it names instead of DIR/bin. GOBIN - The directory where 'go install' will install a command.
If the GOBIN environment variable is set, commands are installed to the directory it names instead of DIR/bin.
GOBIN - The directory where 'go install' will install a command.
As far as I can tell, nothing in documentation mentions it must be an absolute path. Yet it doesn't work when the path is relative.
The text was updated successfully, but these errors were encountered:
It should be documented and the go command should issue an error when it is set to a relative path.
Sorry, something went wrong.
That sounds like a reasonable way to resolve this issue.
CL https://golang.org/cl/15755 mentions this issue.
5b9c6b9
Thank you for fixing this!
No branches or pull requests
I'm using
go version go1.5.1 darwin/amd64
.I've tried:
And the process exited with status 0 (success), but there was nothing written to current folder.
When I used an absolute path for GOBIN, it worked as expected:
From https://tip.golang.org/cmd/go/:
As far as I can tell, nothing in documentation mentions it must be an absolute path. Yet it doesn't work when the path is relative.
The text was updated successfully, but these errors were encountered: