Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go install fails when given source file path #8424
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 same incorrect error message is outputted when you
For example, if you run
current go version and os: go1.5 darwin/amd64