You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+2-16Lines changed: 2 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,6 @@ install-goimports: FORCE
55
55
install-golangci-lint: FORCE
56
56
@if !hash golangci-lint 2>/dev/null;thenprintf"\e[1;36m>> Installing golangci-lint (this may take a while)...\e[0m\n"; go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest;fi
57
57
58
-
install-modernize: FORCE
59
-
@if !hash modernize 2>/dev/null;thenprintf"\e[1;36m>> Installing modernize (this may take a while)...\e[0m\n"; go install golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest;fi
@if !hash reuse 2>/dev/null;thenif!hash pipx 2>/dev/null;thenprintf"\e[1;31m>> You are required to manually intervene to install reuse as go-makefile-maker cannot automatically resolve installing reuse on all setups.\e[0m\n";printf"\e[1;31m>> The preferred way for go-makefile-maker to install python tools after nix-shell is pipx which could not be found. Either install pipx using your package manager or install reuse using your package manager if at least version 6 is available.\e[0m\n";printf"\e[1;31m>> As your Python was likely installed by your package manager, just doing pip install --user sadly does no longer work as pip issues a warning about breaking your system. Generally running --break-system-packages with --user is safe to do but you should only run this command if you can resolve issues with it yourself: pip3 install --user --break-system-packages reuse\e[0m\n";elseprintf"\e[1;36m>> Installing reuse...\e[0m\n"; pipx install reuse;fi;fi
72
69
73
-
prepare-static-check: FORCE install-golangci-lint install-modernize install-shellcheck install-go-licence-detector install-addlicense install-reuse
70
+
prepare-static-check: FORCE install-goimports install-golangci-lint install-shellcheck install-go-licence-detector install-addlicense install-reuse
74
71
75
72
install-controller-gen: FORCE
76
73
@if !hash controller-gen 2>/dev/null;thenprintf"\e[1;36m>> Installing controller-gen (this may take a while)...\e[0m\n"; go install sigs.k8s.io/controller-tools/cmd/controller-gen@latest;fi
@@ -134,10 +131,6 @@ run-golangci-lint: FORCE install-golangci-lint
@goimports -w -local github.com/cobaltcore-dev/kvm-node-agent $(patsubst$(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...))
192
185
193
-
modernize: FORCE install-modernize
194
-
@printf "\e[1;36m>> modernize -fix ./...\e[0m\n"
195
-
@modernize -fix ./...
196
-
197
186
clean: FORCE
198
187
git clean -dxf build
199
188
@@ -226,7 +215,6 @@ help: FORCE
226
215
@printf "\e[1mPrepare\e[0m\n"
227
216
@printf " \e[36minstall-goimports\e[0m Install goimports required by goimports/static-check\n"
228
217
@printf " \e[36minstall-golangci-lint\e[0m Install golangci-lint required by run-golangci-lint/static-check\n"
229
-
@printf " \e[36minstall-modernize\e[0m Install modernize required by run-modernize/static-check\n"
230
218
@printf " \e[36minstall-shellcheck\e[0m Install shellcheck required by run-shellcheck/static-check\n"
231
219
@printf " \e[36minstall-go-licence-detector\e[0m Install-go-licence-detector required by check-dependency-licenses/static-check\n"
232
220
@printf " \e[36minstall-addlicense\e[0m Install addlicense required by check-license-headers/license-headers/static-check\n"
@@ -244,7 +232,6 @@ help: FORCE
244
232
@printf " \e[36mcheck\e[0m Run the test suite (unit tests and golangci-lint).\n"
245
233
@printf " \e[36mgenerate\e[0m Generate code for Kubernetes CRDs and deepcopy.\n"
246
234
@printf " \e[36mrun-golangci-lint\e[0m Install and run golangci-lint. Installing is used in CI, but you should probably install golangci-lint using your package manager.\n"
247
-
@printf " \e[36mrun-modernize\e[0m Install and run modernize. Installing is used in CI, but you should probably install modernize using your package manager.\n"
248
235
@printf " \e[36mrun-shellcheck\e[0m Install and run shellcheck. Installing is used in CI, but you should probably install shellcheck using your package manager.\n"
249
236
@printf " \e[36mbuild/cover.out\e[0m Run tests and generate coverage report.\n"
250
237
@printf " \e[36mbuild/cover.html\e[0m Generate an HTML file with source code annotations from the coverage report.\n"
@@ -258,7 +245,6 @@ help: FORCE
258
245
@printf " \e[36mlicense-headers\e[0m Add (or overwrite) license headers on all non-vendored source code files.\n"
259
246
@printf " \e[36mcheck-dependency-licenses\e[0m Check all dependency licenses using go-licence-detector.\n"
260
247
@printf " \e[36mgoimports\e[0m Run goimports on all non-vendored .go files\n"
261
-
@printf " \e[36mmodernize\e[0m Run modernize on all non-vendored .go files\n"
0 commit comments