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?
% mkdir -p /tmp/gopath/src
% export GOPATH=/tmp/gopath
% cd /tmp/gopath/src
% cat > t.go <<EOF
package main
import "fmt"
func main() { fmt.Println("Hello world") }
EOF
% go install t.go
What is the expected output? What do you see instead?
expected, /tmp/gopath/bin/t is created
actual,
go install: no install location for directory /tmp/gopath/src outside GOPATH
Please use labels and text to provide additional information.
The text was updated successfully, but these errors were encountered:
i can reproduce it using exactly dave's commands.
it's a corner case so perhaps we don't need to specially handle it
in the code, and instead just revise the error message to something
like:
go install: no install location for directory /tmp/gopath/src (not within GOPATH/src)
The text was updated successfully, but these errors were encountered: