File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ modules: ## Runs go mod to ensure proper vendoring.
276
276
$(MAKE ) -C $(REPO_ROOT ) /orc modules
277
277
go mod tidy
278
278
cd $(TOOLS_DIR ) ; go mod tidy
279
- cd $(REPO_ROOT ) /hack/codegen; go mod tidy
279
+ cd $(REPO_ROOT ) /hack/codegen; go work sync ; go mod tidy
280
280
281
281
.PHONY : generate
282
282
generate : templates generate-orc generate-controller-gen generate-codegen generate-conversion-gen generate-go generate-manifests generate-api-docs # # Generate all generated code
@@ -540,25 +540,30 @@ clean-release: ## Remove the release folder
540
540
rm -rf $(RELEASE_DIR )
541
541
542
542
.PHONY : verify
543
- verify : verify-boilerplate verify-modules verify-gen
543
+ verify : verify-boilerplate verify-modules verify-gen verify-orc
544
544
545
545
.PHONY : verify-boilerplate
546
546
verify-boilerplate :
547
547
./hack/verify-boilerplate.sh
548
548
549
549
.PHONY : verify-modules
550
550
verify-modules : modules
551
- @if ! (git diff --quiet HEAD -- go.sum go.mod hack/tools/go.mod hack/tools /go.sum ); then \
551
+ @if ! (git diff --quiet HEAD -- go.* hack/tools/go.* hack/codegen /go.* ); then \
552
552
git diff; \
553
553
echo " go module files are out of date" ; exit 1; \
554
554
fi
555
555
556
+ .PHONY : verify-gen
556
557
verify-gen : generate
557
558
@if ! (git diff --quiet HEAD); then \
558
559
git diff; \
559
560
echo " generated files are out of date, run make generate" ; exit 1; \
560
561
fi
561
562
563
+ .PHONY : verify-orc
564
+ verify-orc :
565
+ $(MAKE ) -C $(REPO_ROOT ) /orc verify-generated
566
+
562
567
.PHONY : compile-e2e
563
568
compile-e2e : # # Test e2e compilation
564
569
go test -c -o /dev/null -tags=e2e ./test/e2e/suites/conformance
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
50
50
.PHONY : modules
51
51
modules :
52
52
go mod tidy
53
- cd hack/codegen; go mod tidy
53
+ cd hack/codegen; go work sync ; go mod tidy
54
54
55
55
.PHONY : generate
56
- generate : manifests generate-controller-gen generate-codegen
56
+ generate : modules manifests generate-controller-gen generate-codegen
57
57
58
58
.PHONY : generate-controller-gen
59
59
generate-controller-gen : controller-gen # # Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -63,6 +63,13 @@ generate-controller-gen: controller-gen ## Generate code containing DeepCopy, De
63
63
generate-codegen : generate-controller-gen # # codegen requires DeepCopy etc
64
64
./hack/update-codegen.sh
65
65
66
+ .PHONY : verify-generated
67
+ verify-generated : generate
68
+ @if ! (git diff --quiet HEAD); then \
69
+ git diff; \
70
+ echo " generated files are out of date, run make generate" ; exit 1; \
71
+ fi
72
+
66
73
.PHONY : fmt
67
74
fmt : # # Run go fmt against code.
68
75
go fmt ./...
You can’t perform that action at this time.
0 commit comments