Vendoring Dependencies in Go
Go in 5 Minutes, episode 7.
This screencast shows how to vendor your dependencies in Go, the modern way.
NOTE: This screencast is no longer relevant, with the advent of Go Modules. It is left here for historical reference only. Please use modules to handle (and vendor, if necessary) your dependencies.
Screencast video:
https://goin5minutes.com/screencast/episode_7_vendoring_your_dependencies_in_go/
Email Newsletter
Quick reminder to sign up at https://goin5minutes.com/subscribe
The first email will go out this week!
Outline
go get
- Reproducible builds
- A Rich History
- Example
Note
Since dependency code is stored on Github, dependencies are mutable. I have checked in the vendor directory here so that you can compile & test this code. To experiment, just rm -rf vendor
and run the glide
commands.