3 # This script updates each non-stdlib, non-Go-kit dependency to its most recent
4 # commit. It can be invoked to aid in debugging after a dependency-related
5 # failure on continuous integration.
8 go list -f '{{join .Deps "\n"}}' ./...
12 xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
19 function go_get_update {
23 go get -u $d || echo "failed, trying again with master" && cd $GOPATH/src/$d && git checkout master && go get -u $d
27 deps | not_stdlib | not_gokit | go_get_update