In order to make sure that a released version of pipeline can be reproduced, dependencies are vendored in using dep. Whenever a dependency is added or updated, install and test.
dep cheat sheet for glide users
(1) Add library versions to use in Gopkg.toml use version for git tag or revision for commit hash
(2) Pull in libraries via dep
dep ensure -add github.com/foo/bar github.com/baz/quux
(3) Apply the file vendor.patch
to fix an issue in a json google library manifested
when streaming json out to kafka.
make patchvendor (or) git apply --verbose ./vendor.patch
(4) To update a existing library, update the version in Gopkg.toml and run
dep ensure
(5) To remove a library, remove it in Gopkg.toml and
run
dep ensure
(6) Build and test
go clean;go build