File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change
1
+ 1607
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ prow-presubmit-check: \
112
112
test-go-mod \
113
113
build-non-plugin-all \
114
114
test-examples-kustomize-against-HEAD \
115
- test-examples-kustomize-against-latest-release
115
+ test-examples-kustomize-against-latest-release \
116
+ workspace-sync \
117
+ generate-kustomize-builtin-plugins
116
118
117
119
.PHONY : license
118
120
license : $(MYGOBIN ) /addlicense
@@ -181,7 +183,15 @@ test-examples-kustomize-against-HEAD: $(MYGOBIN)/kustomize $(MYGOBIN)/mdrip
181
183
test-examples-kustomize-against-latest-release : $(MYGOBIN ) /mdrip
182
184
./hack/testExamplesAgainstKustomize.sh v5@$(LATEST_RELEASE )
183
185
186
+ .PHONY : generate-kustomize-builtin-plugins
187
+ generate-kustomize-builtin-plugins :
188
+ $(MAKE ) -f Makefile-plugin.mk
184
189
190
+ # Pushes dependencies in the go.work file back to go.mod files of each workspace module.
191
+ .PHONY : workspace-sync
192
+ workspace sync :
193
+ go work sync
194
+
185
195
# --- Cleanup targets ---
186
196
.PHONY : clean
187
197
clean : clean-kustomize-external-go-plugin uninstall-tools
Original file line number Diff line number Diff line change @@ -91,7 +91,25 @@ $(pGen)/%.go: $(MYGOBIN)/pluginator $(MYGOBIN)/goimports
91
91
92
92
# Target is for debugging.
93
93
.PHONY : generate-kustomize-builtin-plugins
94
- generate-kustomize-builtin-plugins : $(builtinplugins )
94
+ generate-kustomize-builtin-plugins : $(builtplugins )
95
+ for plugin in $( abspath $( wildcard $( pSrc) /* ) ) ; do \
96
+ echo " generating $$ {plugin} ..." ; \
97
+ set -e; \
98
+ cd $$ {plugin}; \
99
+ go generate pluginator . ; \
100
+ done ; \
101
+ cd ../../../; \
102
+ make no-diff \
103
+
104
+ .PHONY : no-diff
105
+ no-diff : $(builtplugins )
106
+ for file in $( abspath $( builtinplugins) ) ; do \
107
+ echo " Checking for diff... $$ {file}" ; \
108
+ set -e ; \
109
+ if [ " ` git diff $$ {file} | wc -c` " -gt 0 ]; then\
110
+ echo " Error(1): diff found on $$ {file}" ; exit 1; \
111
+ fi \
112
+ done
95
113
96
114
.PHONY : build-kustomize-external-go-plugin
97
115
build-kustomize-external-go-plugin :
You can’t perform that action at this time.
0 commit comments