Skip to content

Commit 5856eae

Browse files
committed
fix: Set GOBIN environment variable for apidiff installation
1 parent 23d89dc commit 5856eae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: hack/apidiff.sh

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fi
5555

5656
# Check for apidiff tool, install it if not found
5757
if ! command -v "${API_DIFF_TOOL}" &> /dev/null; then
58+
GOBIN=${GOBIN:-$(go env GOPATH)/bin}
5859
echo "Installing apidiff into ${GOBIN}."
5960
go install golang.org/x/exp/cmd/apidiff@latest
6061
fi

0 commit comments

Comments
 (0)