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?
If possible, include a link to a program on play.golang.org.
1. export GOPATH=/tmp/test_gopath
2. mkdir -p /tmp/test_gopath/src/github.com/foo/bar
3. go get -x -u github.com/foo/bar
What is the expected output?
An error that somehow includes $GOPATH/src/github.com/foo/bar
What do you see instead?
package github.com/foo/bar: directory "/tmp/test_gopath/src" is not using a
known version control system
Which compiler are you using (5g, 6g, 8g, gccgo)?
Which operating system are you using?
Linux
Which version are you using? (run 'go version')
go version devel +7fe02c8bf785 Thu Aug 15 13:15:55 2013 +1000 linux/amd64
Please provide any additional information below.
Seeing ""/tmp/test_gopath/src" is not using a known version control
system" is very confusing, because of course my /src/ isn't version controlled. It
distracts from the actual cause of the problem: No VCS in /src/github.com/foo/bar
Basically this is caused by vcsForDir (vcs.go) traversing upwards until it finds a VCS
or hits src/. Not sure how to cleanly solve this, since the traversal is for covering
cases like 'github.com/foo/bar/baz' where baz is just a directory in the foo/bar
repository.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: