diff --git a/Makefile b/Makefile index 8699e79..a01b949 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,10 @@ GO111MODULE = on KIND_VERSION = v0.30.0 UP_VERSION = v0.41.0 UP_CHANNEL = stable -UPTEST_VERSION = v1.1.2 +UPTEST_VERSION = v2.0.1 CROSSPLANE_VERSION = 1.20.0 +CRDDIFF_VERSION = v0.12.1 + -include build/makelib/k8s_tools.mk # Setup Images @@ -129,7 +131,7 @@ e2e: local-deploy uptest # TODO: please move this to the common build submodule # once the use cases mature -crddiff: $(UPTEST) +crddiff: @$(INFO) Checking breaking CRD schema changes @for crd in $${MODIFIED_CRD_LIST}; do \ if ! git cat-file -e "$${GITHUB_BASE_REF}:$${crd}" 2>/dev/null; then \ @@ -137,7 +139,7 @@ crddiff: $(UPTEST) continue ; \ fi ; \ echo "Checking $${crd} for breaking API changes..." ; \ - changes_detected=$$($(UPTEST) crddiff revision <(git cat-file -p "$${GITHUB_BASE_REF}:$${crd}") "$${crd}" 2>&1) ; \ + changes_detected=$$(go run github.com/upbound/uptest/cmd/crddiff@$(CRDDIFF_VERSION) revision <(git cat-file -p "$${GITHUB_BASE_REF}:$${crd}") "$${crd}" 2>&1) ; \ if [[ $$? != 0 ]] ; then \ printf "\033[31m"; echo "Breaking change detected!"; printf "\033[0m" ; \ echo "$${changes_detected}" ; \