Skip to content

Commit

Permalink
Merge pull request #2 from pulumi/jen20/use-gobin
Browse files Browse the repository at this point in the history
Use GOBIN when installing Go Binaries
  • Loading branch information
stack72 authored Feb 27, 2020
2 parents 3b92a8c + 0bd0f70 commit 7eff602
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/install-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions scripts/install-protobuf-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/install-pulumi-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7eff602

Please sign in to comment.