From 7a05c256d6467864d3a8ff26b8aba35a4d2672c6 Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Wed, 1 Nov 2017 19:45:06 -0700 Subject: [PATCH] Add basic docs for using dep --- docs/dep.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/dep.md diff --git a/docs/dep.md b/docs/dep.md new file mode 100644 index 0000000000000..70a0f12244e8a --- /dev/null +++ b/docs/dep.md @@ -0,0 +1,26 @@ +# kubernetes/test-infra dependency management + +test-infra uses [`dep`](https://github.com/golang/dep) for Go dependency +management. `dep` is a prototype dependency management tool for Go. It requires +Go 1.8 or newer to compile. + + +## Setup + +You can follow the [setup instructions](https://github.com/golang/dep#setup) to +set up `dep` in your local environment. + + +## Changing dependencies + +You can use the `dep` instructions for [adding](https://github.com/golang/dep#adding-a-dependency), +[updating](https://github.com/golang/dep#updating-dependencies) or +[removing](https://github.com/golang/dep#removing-dependencies) a dependency. + +Once you've updated, make sure to run: +``` +dep prune +verify/update-bazel.sh +``` + +To prune unneeded deps, and then update all the bazel files that `dep` blows away.