-
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
proposal: cmd/go: force vendor directory only #19234
Comments
What about setting |
@mvdan empty default to $HOME and
It doesn't look for the vendor dir, may be it should ? And I can't use Edit: same output for |
Ah right, it can't find any of the packages then. I guess you could set up a new Alternatively, I've seen discussions around "building Go packages outside of GOPATH". That might be a solution for this if you unset |
I agree that it would be useful to do this. For the time being you could try https://github.com/cloudflare/hellogopher. The Makefile creates a |
@vcabbage works like a charm, thanks |
I think this is a great idea. Being able to build (dependencies) in an isolated environment reduces frustration and increases software stability. 👍 |
On hold for package management. We'll get there but vendor may or may not be the answer. |
I think this is |
Hello there,
TLDR: it would be nice to be able to
go build --using-vendors-only
or something similar.More thought:
I like a revision of a go project to be buildable.
Often when I update the vendors of a project, the ci tools tell me there is a missing dep or something is wrong with this or that dep, because that other pkg is outdated, because the system are different or other various reasons.
But it always works locally and then I find myself having a lot commits that contain
fix godeps
So I'd like to have a pre commit hook that checks if the project builds in my ci.
that hook would do something like this:
GOOS=linux go build --using-vendors-only
Tried
GOOS=linux go build -pkgdir ./vendor
but nopeThe text was updated successfully, but these errors were encountered: