You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
446 B
20 lines
446 B
#!/bin/bash |
|
|
|
set -ex |
|
|
|
# Find all of our external imports and update them. |
|
updated=false |
|
for attempt in 1 2 3; do |
|
if ( go list -f '{{join .Imports "\n"}}' ./... && go list -f '{{join .TestImports "\n"}}' ./...; ) \ |
|
| sort -u \ |
|
| fgrep -v github.com/tsuna/gohbase \ |
|
| xargs go get -d -f -u -v; then |
|
updated=true |
|
break |
|
fi |
|
sleep $((attempt*attempt)) |
|
done |
|
if ! $updated; then |
|
echo failed to update dependencies |
|
exit 1 |
|
fi
|
|
|