diff --git a/scripts/install-go.sh b/scripts/install-go.sh index 4fd3b1f..f23d202 100755 --- a/scripts/install-go.sh +++ b/scripts/install-go.sh @@ -35,4 +35,4 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | # # gocovmerge does not publish versioned releases, but it also hasn't been updated # in two years, so getting HEAD is pretty safe. -/usr/local/go/bin/go get -v github.com/wadey/gocovmerge +GOBIN=/usr/local/bin /usr/local/go/bin/go get -v github.com/wadey/gocovmerge diff --git a/scripts/install-protobuf-tools.sh b/scripts/install-protobuf-tools.sh index 365388b..4760e84 100755 --- a/scripts/install-protobuf-tools.sh +++ b/scripts/install-protobuf-tools.sh @@ -32,8 +32,8 @@ rm -rf /tmp/protoc.zip # Install protoc-gen-go pushd /tmp git clone https://github.com/golang/protobuf -b "v${PROTOC_GEN_GO_VERSION}" --single-branch --depth 1 -pushd /tmp/protobuf/protoc-gen-go -/usr/local/go/bin/go install +pushd /tmp/protobuf +GOBIN=/usr/local/bin /usr/local/go/bin/go install github.com/golang/protobuf/protoc-gen-go popd rm -rf /tmp/protobuf diff --git a/scripts/install-pulumi-tools.sh b/scripts/install-pulumi-tools.sh index 52ae7b2..78d1790 100755 --- a/scripts/install-pulumi-tools.sh +++ b/scripts/install-pulumi-tools.sh @@ -23,4 +23,4 @@ tar -C /usr/local/bin -xzf /tmp/tf2pulumi.tar.gz rm /tmp/tf2pulumi.tar.gz # Install gomod-doccopy -/usr/local/go/bin/go get -v github.com/pulumi/scripts/gomod-doccopy +GOBIN=/usr/local/bin /usr/local/go/bin/go get -v github.com/pulumi/scripts/gomod-doccopy