@@ -19,20 +19,20 @@ help: # Display this help
19
19
20
20
# #@ Global:
21
21
.PHONY : all
22
- all : interceptor cadctl template-updater generate-template-file # # Generate, build, lint, test all subprojects
22
+ all : interceptor cadctl # # Generate, build, lint, test all subprojects
23
23
24
24
.PHONY : build
25
- build : build-interceptor build-cadctl build-template-updater # # Build all subprojects in this repository
25
+ build : build-interceptor build-cadctl # # Build all subprojects in this repository
26
26
27
27
.PHONY : lint
28
- lint : lint-cadctl lint-interceptor lint-template-updater # # Lint all subprojects
28
+ lint : lint-cadctl lint-interceptor # # Lint all subprojects
29
29
30
30
.PHONY : test
31
31
test : test-cadctl test-interceptor
32
32
33
33
# #@ cadctl:
34
34
.PHONY : cadctl
35
- cadctl : generate-cadctl build-cadctl test-cadctl lint-cadctl generate-template-file # # Run all targets for cadctl (generate, build, test, lint, generation)
35
+ cadctl : generate-cadctl build-cadctl test-cadctl lint-cadctl # # Run all targets for cadctl (generate, build, test, lint, generation)
36
36
37
37
.PHONY : generate-cadctl
38
38
generate-cadctl : check-go121-install install-mockgen # # Generate mocks for cadctl
@@ -91,40 +91,18 @@ test-interceptor-e2e: check-go121-install check-jq-install check-vault-install b
91
91
bootstrap-investigation : # # Bootstrap a new boilerplate investigation
92
92
@cd hack && ./bootstrap-investigation.sh
93
93
94
- # #@ Template-updater:
95
- .PHONY : template-updater
96
- template-updater : build-template-updater lint-template-updater # # Run all targets for template-updater
97
-
98
- .PHONY : build-template-updater
99
- build-template-updater : # # Build the template-updater binary
100
- @echo
101
- @echo " Building template-updater..."
102
- cd hack/update-template && go build -ldflags=" -s -w" -mod=readonly -trimpath -o ../../bin/template-updater .
103
-
104
- .PHONY : lint-template-updater
105
- lint-template-updater : install-linter # # Lint template-updater subproject
106
- @echo
107
- @echo " Linting template-updater..."
108
- # Explicitly set GOROOT, see https://github.com/golangci/golangci-lint/issues/3107
109
- cd hack/update-template && GOROOT=/usr/lib/golang GOLANGCI_LINT_CACHE=$$(mktemp -d ) $(GOPATH ) /bin/golangci-lint run -c ../../.golangci.yml
110
94
111
95
.PHONY : boilerplate-update
112
96
boilerplate-update : # # Update boilerplate version
113
97
@boilerplate/update
114
98
115
- .PHONY : generate-template-file
116
- generate-template-file : build-template-updater # # Generate deploy template file
117
- @echo
118
- @echo " Generating template file..."
119
- cp ./bin/template-updater ./hack/update-template/ && cd ./hack/update-template/ && ./template-updater
120
-
121
99
# ## CI Only
122
100
.PHONY : coverage
123
101
coverage :
124
102
hack/codecov.sh
125
103
126
104
.PHONY : validate
127
- validate : generate-template-file isclean
105
+ validate : isclean
128
106
129
107
# ## Prerequisites
130
108
# ## It is assumed that 'make' is already installed
0 commit comments