test-infra uses dep
for Go dependency
management. dep
is a prototype dependency management tool for Go. It requires
Go 1.8 or newer to compile.
You can follow the setup instructions to
set up dep
in your local environment.
You can use the dep
instructions for adding,
updating or
removing a dependency.
Once you've updated, make sure to run:
dep prune
hack/update-bazel.sh
To prune unneeded deps, and then update all the bazel files that dep
blows away.
If dep ensure
doesn't come back and freezes, please make sure hg
command is
installed on your environment. dep ensure
requires hg
command for getting
bitbucket.org/ww/goautoneg , but dep ensure
doesn't output such error message
and just freezes. reference