studio: add other factors for adjusting GOBIN
Besides the vendor changes, any changes in
our interface to it (protoc-gen-policy component)
typically need new executables, too.
@@ -55,7 +55,12 @@ export GO111MODULE=on
# Specify where to put 'go installed' binaries
setup_gobin() {
local vendor_hash
- vendor_hash=$(sha256sum /src/vendor/modules.txt | cut -c1-16)
+ vendor_hash=$(cat \
+ /src/vendor/modules.txt \
+ /src/components/automate-grpc/protoc-gen-policy/policy/policy.go \
+ /src/components/automate-grpc/protoc-gen-policy/api/policy.proto \
+ /src/components/automate-grpc/protoc-gen-policy/iam/policy.proto \
+ | sha256sum | cut -c1-16)
export GOBIN_BASE="/src/bin"
GOBIN="${GOBIN_BASE}/${vendor_hash}"
export GOBIN
