4 ms·
> if your projects use vendoring (which they should) For versioning? Also: 1. I haven't seen projects on github using vendoring 2. It doesn't look like `go g
by baby 9y ago
> if your projects use vendoring (which they should)
For versioning? Also:
1. I haven't seen projects on github using vendoring
2. It doesn't look like `go get` allows you to download a package directly into your vendor file
- fpoling 9y agoFor my personal project [1] I use vendoring. But as of Go 1.8 it is still inconvenient as the main package has to be on GOPATH/GOROOT or the compiler will not find it. To maintain it I use git-subrepo [2], a very convenient tool to embed the code into own tree. [1] - https://github.com/ibukanov/ljdumpgo https://github.com/ibukanov/ljdumpgo [2] - https://github.com/ingydotnet/git-subrepo https://github.com/ingydotnet/git-subrepo
- kensey 9y agoHave a look at /coreos on GitHub -- flannel, dex and prometheus-operator all use vendoring, just looking at what's pinned. matchbox does also.
- baby 9y agoThanks for the examples! https://github.com/coreos/flannel/tree/master/vendor https://github.com/coreos/flannel/tree/master/vendor