refactor: fix generate-kustimize-builtin-plugins, add diff checker on generate-kustomize-builtin-plugins, add go work sync on presubmit check, add generate-kustomize-builtin-plugins on presubmit check

This commit is contained in:
Kurnianto Trilaksono
2023-08-27 23:16:55 +07:00
parent 59696d1ace
commit 532abf77e7
3 changed files with 31 additions and 2 deletions

View File

@@ -112,7 +112,9 @@ prow-presubmit-check: \
test-go-mod \
build-non-plugin-all \
test-examples-kustomize-against-HEAD \
test-examples-kustomize-against-latest-release
test-examples-kustomize-against-latest-release \
workspace-sync \
generate-kustomize-builtin-plugins
.PHONY: license
license: $(MYGOBIN)/addlicense
@@ -181,7 +183,15 @@ test-examples-kustomize-against-HEAD: $(MYGOBIN)/kustomize $(MYGOBIN)/mdrip
test-examples-kustomize-against-latest-release: $(MYGOBIN)/mdrip
./hack/testExamplesAgainstKustomize.sh v5@$(LATEST_RELEASE)
.PHONY: generate-kustomize-builtin-plugins
generate-kustomize-builtin-plugins:
$(MAKE) -f Makefile-plugin.mk
# Pushes dependencies in the go.work file back to go.mod files of each workspace module.
.PHONY: workspace-sync
workspace sync:
go work sync
# --- Cleanup targets ---
.PHONY: clean
clean: clean-kustomize-external-go-plugin uninstall-tools