-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go test is looking for packages in /go/src instead of /go/pkg :( #38758
Comments
I tried this:
and it didn't really help :( but at least it's looking in the new dir:
|
ok so part of the problem is that the path turns out to be:
instead of the desired:
so it's appending a |
Please fill out the complete issue template. (The requested The fact that the error message indicates directories in |
I tried this too:
is there a different env var I need to set? |
Here is the
|
Sorry, but at this point we only use the Go issue tracker for tracking defects in the Go compiler and toolchain, not for answering usage questions. Especially without the The Using Go Modules blog post might be a good place for you to start. (Note in particular that the current working directory for the There are many other methods to get help if you're still looking for answers:
Thanks |
np, so fwiw setting these explicitly worked:
my guess is that
was not working, but I lost track of wtf was happening, now that it works, I gotta move on to other stuff |
Same issue on Windows EDIT: |
I am on:
I have this set:
I run this:
and I get this :(
To me it appears that
go test
is looking for packages/source in$GOPATH/src
instead of$GOPATH/pkg
. Why?The text was updated successfully, but these errors were encountered: