Skip to content

Instantly share code, notes, and snippets.

@cihangir
Created November 24, 2017 22:54
Show Gist options
  • Save cihangir/bc48e27b7be741bcab912759455a169a to your computer and use it in GitHub Desktop.
Save cihangir/bc48e27b7be741bcab912759455a169a to your computer and use it in GitHub Desktop.
update vendor/golang.org/x folder
#!/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