File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -314,9 +314,11 @@ verify-gen: generate ## Verify generated files
314
314
echo " generated files are out of date, run make generate" ; exit 1; \
315
315
fi
316
316
317
+ APIDIFF_OLD_COMMIT ?= $(shell git rev-parse origin/main)
318
+
317
319
.PHONY : apidiff
318
320
apidiff : $(GO_APIDIFF ) # # Check for API differences
319
- $(GO_APIDIFF ) $(shell git rev-parse origin/main ) --print-compatible
321
+ $(GO_APIDIFF ) $(APIDIFF_OLD_COMMIT ) --print-compatible
320
322
321
323
# #@ build:
322
324
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ set -o nounset
19
19
set -o pipefail
20
20
21
21
REPO_ROOT=$( dirname " ${BASH_SOURCE[0]} " ) /..
22
- APIDIFF=" ${REPO_ROOT} /hack/tools/bin/go-apidiff"
23
22
24
- cd " ${REPO_ROOT} " && make apidiff
25
- echo " *** Running go-apidiff ***"
23
+ cd " ${REPO_ROOT} "
26
24
27
- ${APIDIFF} " ${PULL_BASE_SHA} " --print-compatible
25
+ echo " *** Running go-apidiff ***"
26
+ APIDIFF_OLD_COMMIT=" ${PULL_BASE_SHA} " make apidiff
You can’t perform that action at this time.
0 commit comments