File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,15 @@ verify: tidy fmt vet generate ## Verify the current code generation and lint
131131
132132.PHONY : verify-crd-compatibility
133133CRD_DIFF_ORIGINAL_REF := main
134- CRD_DIFF_UPDATED_SOURCE := file://config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml
135134CRD_DIFF_CONFIG := crd-diff-config.yaml
136135verify-crd-compatibility : $(CRD_DIFF )
137- $(CRD_DIFF ) --config=" ${CRD_DIFF_CONFIG} " " git://${CRD_DIFF_ORIGINAL_REF} ?path=config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml" ${CRD_DIFF_UPDATED_SOURCE}
136+ @if git show ${CRD_DIFF_ORIGINAL_REF} :${CRD_PATH} > /dev/null 2>&1 ; then \
137+ echo " Running CRD diff for ${CRD_PATH} ..." ; \
138+ $(CRD_DIFF ) --config=" ${CRD_DIFF_CONFIG} " " git://${CRD_DIFF_ORIGINAL_REF} ?path=${CRD_PATH} " " file://${CRD_PATH} " ; \
139+ else \
140+ echo " Skipping CRD diff check for ${CRD_PATH} as it is new." ; \
141+ fi
142+
138143
139144.PHONY : lint
140145lint : $(GOLANGCI_LINT ) # # Run golangci linter.
You can’t perform that action at this time.
0 commit comments