File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -310,9 +310,11 @@ lint-fix: $(GOLANGCI_LINT) ## Lint the codebase and run auto-fixers if supported
310
310
tiltfile-fix : # # Format the Tiltfile
311
311
./hack/verify-starlark.sh fix
312
312
313
+ APIDIFF_OLD_COMMIT ?= $(shell git rev-parse origin/main)
314
+
313
315
.PHONY : apidiff
314
316
apidiff : $(GO_APIDIFF ) # # Check for API differences
315
- $(GO_APIDIFF ) $(shell git rev-parse origin/main ) --print-compatible
317
+ $(GO_APIDIFF ) $(APIDIFF_OLD_COMMIT ) --print-compatible
316
318
317
319
ALL_VERIFY_CHECKS = doctoc boilerplate shellcheck tiltfile modules gen conversions docker-provider book-links
318
320
Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ set -o pipefail
20
20
21
21
REPO_ROOT=$( dirname " ${BASH_SOURCE[0]} " ) /..
22
22
23
- APIDIFF= " hack/tools/bin/go-apidiff "
23
+ cd " ${REPO_ROOT} "
24
24
25
- cd " ${REPO_ROOT} " && make ${APIDIFF}
26
25
echo " *** Running go-apidiff ***"
27
-
28
- ${APIDIFF} " ${PULL_BASE_SHA} " --print-compatible
26
+ APIDIFF_OLD_COMMIT=" ${PULL_BASE_SHA} " make apidiff
You can’t perform that action at this time.
0 commit comments