From db9ccb75bfd3a1bea07b94ce8558267ce4129168 Mon Sep 17 00:00:00 2001 From: Hitoshi Mitake Date: Wed, 18 May 2016 11:35:06 +0900 Subject: [PATCH] scripts: pass -u to go get in genproto.sh Current genproto.sh doesn't pass -u option to go get. It is problematic because the script depends on a specific version of gogoproto. Actually it causes build error if a repository already have an old version of gogoproto that doesn't have a specified commit ($SHA). This commit lets the script pass -u to go get for avoid the error. --- scripts/genproto.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/genproto.sh b/scripts/genproto.sh index 7dc086b81..744d62826 100755 --- a/scripts/genproto.sh +++ b/scripts/genproto.sh @@ -38,8 +38,8 @@ ln -s "${PWD}" "${ETCD_ROOT}" # Ensure we have the right version of protoc-gen-gogo by building it every time. # TODO(jonboulle): vendor this instead of `go get`ting it. -go get github.com/gogo/protobuf/{proto,protoc-gen-gogo,gogoproto} -go get golang.org/x/tools/cmd/goimports +go get -u github.com/gogo/protobuf/{proto,protoc-gen-gogo,gogoproto} +go get -u golang.org/x/tools/cmd/goimports pushd "${GOGOPROTO_ROOT}" git reset --hard "${SHA}" make install