Codebase list golang-github-go-kit-kit / 772919e
update_deps.bash helper script Peter Bourgon 9 years ago
1 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #!/usr/bin/env bash
1
2 # This script updates each non-stdlib, non-gokit dependency to its most recent
3 # commit. It can be invoked to aid in debugging after a dependency-related
4 # failure on continuous integration.
5
6 function deps {
7 go list -f '{{join .Deps "\n"}}' ./...
8 }
9
10 function not_stdlib {
11 xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
12 }
13
14 function not_gokit {
15 grep -v 'peterbourgon/gokit'
16 }
17
18 function go_get_update {
19 while read d ; do
20 echo $d
21 go get -u $d
22 done
23 }
24
25 deps | not_stdlib | not_gokit | go_get_update
26