We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23d89dc commit 647b6f4Copy full SHA for 647b6f4
hack/apidiff.sh
@@ -55,10 +55,21 @@ fi
55
56
# Check for apidiff tool, install it if not found
57
if ! command -v "${API_DIFF_TOOL}" &> /dev/null; then
58
+ GOBIN=${GOBIN:-$(go env GOPATH)/bin}
59
echo "Installing apidiff into ${GOBIN}."
60
go install golang.org/x/exp/cmd/apidiff@latest
61
+ # Add GOBIN to PATH
62
+ export PATH=$PATH:${GOBIN}
63
fi
64
65
+# Ensure the remote is set
66
+if ! git remote get-url origin &> /dev/null; then
67
+ git remote add origin https://github.com/kubernetes-sigs/structured-merge-diff.git
68
+fi
69
+
70
+# Fetch the latest changes from the remote
71
+git fetch origin
72
73
# Fetch common base if -r is not set
74
if [ -z "${REFERENCE_REVISION}" ]; then
75
echo "Determining common base with origin/master..."
0 commit comments