-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
GO15VENDOREXPERIMENT does not work outside GOPATH #12511
Comments
It's not intended to work. Vendor is for fully-qualified imports (not relative ./ ones), and those only work inside $GOPATH. |
I see. Can you point me to the rationale/discussion? Because I think it can really confuse newcomers, since they won't be able to just clone a repository and run |
Let's move discussion to a forum. See https://golang.org/wiki/Questions |
@FiloSottile FYI you can make a softlink to anywere else and "go build" will work correctly there. |
The exact same package, which imports code from its
./vendor/
folder, will correctlygo build
if placed in$GOPATH/*
, but will fail to find the packages in./vendor/
if placed anywhere else.The two different behaviors are surprising.
This was turned off in b6ead9f
The text was updated successfully, but these errors were encountered: