5 ms·
I am glad there is now support for vendor directories, albeit experimental at this stage. https://go-review.googlesource.com/#/c/10923/ https://go-review.googl
by gnufrra 11y ago
I am glad there is now support for vendor directories, albeit experimental at this stage.
https://go-review.googlesource.com/#/c/10923/ https://go-review.googlesource.com/#/c/10923/
Go 1.5 vendor proposal:
If there is a source directory d/vendor, then, when compiling a source file within the subtree rooted at d, import "p" is interpreted as import "d/vendor/p" if that exists.
When there are multiple possible resolutions, the most specific (longest) path wins.
The short form must always be used: no import path can contain “/vendor/” explicitly.
Import comments are ignored in vendored packages.
- rem7 11y agoagreed. That's the main reason I'm upgrading.
- XorNot 11y agoIs there any scoping on what vendoring means for forking projects? i.e. if I pull something full of packages like domain.com/user/pkg, would I now be better served just dropping the whole subdirectory tree in a /vendor/ directory?
- mfer 11y agoWe were excited enough we pivoted glide, the package manager, to directly support this new vendor setup. Anyone interested can learn more at https://github.com/Masterminds/glide https://github.com/Masterminds/glide or where I posted about it at http://engineeredweb.com/blog/2015/glide-0.5-go-vendor-support/ http://engineeredweb.com/blog/2015/glide-0.5-go-vendor-suppo.... I'm hopeful for this brave new vendor world.
- Spiritus 11y agoCan't seem to get this to work no matter what I do. And yes, I've set the GO15VENDOREXPERIMENT=1 env variable.