You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. ~/bug.go contains any program compiling successfully (e.g.
http://play.golang.org/p/RQT4BfIN7h)
2. go install ~/bug.go
Reading the documentation of "go install" I expect it to fail because ~/bug.go
is not an import path.
Instead this error message is logged: "go install: no install location for .go
files listed on command line (GOBIN not set)"
In any case there's a documentation in the bug, since there's no mention $GOBIN.
Once the expected behavior clarified I'm happy to try to fix it.
The text was updated successfully, but these errors were encountered:
The same incorrect error message is outputted when you go install some .go file that doesn't contain a main package.
For example, if you run go install mgorus.go on github.com/weekface/mgorus, the compiler complains: go install: no install location for .go files listed on command line (GOBIN not set).
This doesn't describe the correct problem. The problem is that you can install only main packages, not that GOBIN is not set (echo $GOBIN returns /Users/carstn/Code/go/bin).
The text was updated successfully, but these errors were encountered: