File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
plugin/builtin/patchtransformer Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ prow-presubmit-check: \
110
110
install-tools \
111
111
workspace-sync \
112
112
generate-kustomize-builtin-plugins \
113
+ builtin-plugins-diff \
113
114
test-unit-kustomize-plugins \
114
115
test-go-mod \
115
116
build-non-plugin-all \
@@ -185,7 +186,7 @@ test-examples-kustomize-against-latest-release: $(MYGOBIN)/mdrip
185
186
186
187
# Pushes dependencies in the go.work file back to go.mod files of each workspace module.
187
188
.PHONY : workspace-sync
188
- workspace sync :
189
+ workspace- sync :
189
190
go work sync
190
191
./hack/doGoMod.sh tidy
191
192
Original file line number Diff line number Diff line change @@ -97,13 +97,12 @@ generate-kustomize-builtin-plugins: $(builtplugins)
97
97
set -e; \
98
98
cd $$ {plugin}; \
99
99
go generate pluginator . ; \
100
- done ; \
101
- cd ../../../; \
102
- make no-diff \
100
+ done
103
101
104
- # Check for diff, if diff is found, throw error code 1
105
- .PHONY : no-diff
106
- no-diff : $(builtplugins )
102
+ # Check for diff by comparing current revision of generated plugins on HEAD and newly generated plugins on local branch,
103
+ # If diff is found, throw error code 1
104
+ .PHONY : builtin-plugins-diff
105
+ builtin-plugins-diff : $(builtplugins )
107
106
for file in $( abspath $( builtinplugins) ) ; do \
108
107
echo " Checking for diff... $$ {file}" ; \
109
108
set -e ; \
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ module sigs.k8s.io/kustomize/plugin/builtin/patchtransformer
3
3
go 1.20
4
4
5
5
require (
6
+ github.com/stretchr/testify v1.8.1
6
7
gopkg.in/evanphx/json-patch.v5 v5.6.0
7
8
sigs.k8s.io/kustomize/api v0.14.0
8
9
sigs.k8s.io/kustomize/kyaml v0.14.3
@@ -26,7 +27,6 @@ require (
26
27
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
27
28
github.com/pkg/errors v0.9.1 // indirect
28
29
github.com/pmezard/go-difflib v1.0.0 // indirect
29
- github.com/stretchr/testify v1.8.1 // indirect
30
30
github.com/xlab/treeprint v1.2.0 // indirect
31
31
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
32
32
golang.org/x/sys v0.8.0 // indirect
You can’t perform that action at this time.
0 commit comments