Re:Program your next server in Go
by mbgaxyz on Tuesday June 07, 2016 @06:54PM
(#11858663)
Would the vendor management support deterministic builds?
[ Parent
| on HN ]
Yes, that is the purpose of the vendor directory. You copy the source of each of your dependencies into vendor/ and commit it to your own source control so it can't change unless you do so yourself. I personally use git submodules to manage the contents of the vendor/ tree, but the go compiler/toolchain itself doesn't really care how you get the files into there.
Edit: other comments below have mentioned some of the tools available to manage your vendor/ tree. Using git submodules manually can be crude, especially when adding dependencies that themselves have other dependencies.