mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 17:52:12 +00:00
[Chore] Enable go-api-diff checker
This PR introduces go-api-diff checker in Makefile and in CI to make sure we don't end up breaking APIs unintentionally. Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
This commit is contained in:
8
Makefile
8
Makefile
@@ -126,6 +126,14 @@ check-license: $(MYGOBIN)/addlicense
|
||||
lint: $(MYGOBIN)/golangci-lint $(MYGOBIN)/goimports $(builtinplugins)
|
||||
./hack/for-each-module.sh "make lint"
|
||||
|
||||
.PHONY: apidiff
|
||||
apidiff: go-apidiff ## Run the go-apidiff to verify any API differences compared with origin/master
|
||||
$(GOBIN)/go-apidiff master --compare-imports --print-compatible --repo-path=.
|
||||
|
||||
.PHONY: go-apidiff
|
||||
go-apidiff:
|
||||
go install github.com/joelanford/go-apidiff@v0.6.0
|
||||
|
||||
.PHONY: test-unit-all
|
||||
test-unit-all: \
|
||||
test-unit-non-plugin \
|
||||
|
||||
Reference in New Issue
Block a user