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
wally=% GOBIN= go install doc.go
go install: no install location for directory /private/tmp outside GOPATH
wally=% GOBIN=/Users/r/bin/ go install doc.go
wally=%
The existence of GOBIN should not suddenly make this erroneous usage work. (Yes, it
installs the program, a one-source-file command, into /Users/r/bin as requested).
The text was updated successfully, but these errors were encountered:
Earlier me disagrees. I actually implemented what you asked for, but there is a test in
go/test.bash checking that go install succeeds in this case, and my change broke that
test. Especially since the behavior is tested, I am inclined to leave it as is.
I should note that CL 13234052 fixes the error so that instead of
being told about "outside GOPATH" it says
go install: no install location for .go files listed on command line (GOBIN not set)
That at least should make the different behavior very clear.
Hi,
My GOPATH env variable is correctly set. My PATH env var includes $GOPATH/bin. I also have $GOPATH/bin created. I have a source file inside $GOPATH/src/github.com/pandeya/hello/hello.go
When I run command "go install hello.go" in hello directory, I get the above mentioned error message
go install: no install location for .go files listed on command line (GOBIN not set)
I can run the program using "go run hello.go" properly.
I understand that if I have GOPATH correctly set, i don't need to set GOBIN.
Am I missing anything?
I am running OS X Yosemite 10.10.3 with go1.4.2 darwin/amd64
The text was updated successfully, but these errors were encountered: