Created
November 24, 2017 22:54
-
-
Save cihangir/bc48e27b7be741bcab912759455a169a to your computer and use it in GitHub Desktop.
update vendor/golang.org/x folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
PATHS="./go/src/vendor/golang.org/x/" | |
REPOS=$(ls $PATHS) | |
rm -rf ./go/src/golang.org | |
rm -rf ./go/src/vendor/golang.org | |
go get golang.org/x/crypto/... | |
go get golang.org/x/net/... | |
go get golang.org/x/sys/... | |
go get golang.org/x/text/... | |
go get golang.org/x/tools/... | |
echo "update the glide lock files with the following..." | |
for i in $REPOS; do | |
repo=$PATHS$i | |
pushd $repo >/dev/null | |
echo ${repo:16:50} $(git rev-parse HEAD) | |
popd >/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment