-
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: have go get
... look in vendored caches for dependencies
#35510
Comments
/cc @bcmills |
Per https://golang.org/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them:
The |
As @mvdan and @bcmills pointed out, this is infeasible. The vendor directory by design does not contain full modules, only necessary packages for a build. @mcandre, as of Go 1.14 the go command will load packages from vendor automatically when it exists, so that will help "more reproducible development environments and less network strain" during builds. But |
go get
... look in vendored caches for dependenciesgo get
... look in vendored caches for dependencies
Given that this is not possible - the vendor directory does not contain full modules, and people would object if it did - this seems like a likely decline. Leaving open for a week for final comments. |
No change in consensus so declining. |
I already have gopkg.in/yaml.v2 in my
vendor/
directory, managed withgo mod vendor
. However, when I rungo get github.com/tsg/gotpl
, this cache is ignored and the command fails due to how my particular network's proxies work.Can we please have
go get
... check for dependencies invendor/
, for more reproducible development environments and less network strain?The text was updated successfully, but these errors were encountered: