Skip to content

Commit 614b27e

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent ba5fa19 commit 614b27e

File tree

5 files changed

+7
-21
lines changed

5 files changed

+7
-21
lines changed

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"matchPackageNames": [
6767
"/^k8s.io\\//"
6868
],
69-
"allowedVersions": "0.28.x"
69+
"allowedVersions": "0.33.x"
7070
}
7171
],
7272
"prHourlyLimit": 0,

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/setup-go@v6
3030
with:
3131
check-latest: true
32-
go-version: 1.25.3
32+
go-version: 1.25.4
3333
- name: Run golangci-lint
3434
uses: golangci/golangci-lint-action@v8
3535
with:

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.25.3
35+
go-version: 1.25.4
3636
- name: Build all binaries
3737
run: make build-all
3838
code_coverage:
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/setup-go@v6
6666
with:
6767
check-latest: true
68-
go-version: 1.25.3
68+
go-version: 1.25.4
6969
- name: Run tests and generate coverage report
7070
run: make build/cover.out
7171
- name: Archive code coverage results

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.25.3
35+
go-version: 1.25.4
3636
- name: Initialize CodeQL
3737
uses: github/codeql-action/init@v4
3838
with:

Makefile

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,6 @@ install-goimports: FORCE
309309
install-golangci-lint: FORCE
310310
@if ! hash golangci-lint 2>/dev/null; then printf "\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
311311

312-
install-modernize: FORCE
313-
@if ! hash modernize 2>/dev/null; then printf "\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
314-
315312
install-shellcheck: FORCE
316313
@if ! hash shellcheck 2>/dev/null; then printf "\e[1;36m>> Installing shellcheck...\e[0m\n"; SHELLCHECK_ARCH=$(shell uname -m); if [[ "$$SHELLCHECK_ARCH" == "arm64" ]]; then SHELLCHECK_ARCH=aarch64; fi; SHELLCHECK_OS=$(shell uname -s | tr '[:upper:]' '[:lower:]'); SHELLCHECK_VERSION="stable"; if command -v curl >/dev/null 2>&1; then GET="curl -sLo-"; elif command -v wget >/dev/null 2>&1; then GET="wget -O-"; else echo "Didn't find curl or wget to download shellcheck"; exit 2; fi; $$GET "https://github.com/koalaman/shellcheck/releases/download/$$SHELLCHECK_VERSION/shellcheck-$$SHELLCHECK_VERSION.$$SHELLCHECK_OS.$$SHELLCHECK_ARCH.tar.xz" | tar -Jxf -; BIN=$$(go env GOBIN); if [[ -z $$BIN ]]; then BIN=$$(go env GOPATH)/bin; fi; install -Dm755 shellcheck-$$SHELLCHECK_VERSION/shellcheck -t "$$BIN"; rm -rf shellcheck-$$SHELLCHECK_VERSION; fi
317314

@@ -324,7 +321,7 @@ install-addlicense: FORCE
324321
install-reuse: FORCE
325322
@if ! hash reuse 2>/dev/null; then if ! hash pipx 2>/dev/null; then printf "\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"; else printf "\e[1;36m>> Installing reuse...\e[0m\n"; pipx install reuse; fi; fi
326323

327-
prepare-static-check: FORCE install-golangci-lint install-modernize install-shellcheck install-go-licence-detector install-addlicense install-reuse
324+
prepare-static-check: FORCE install-goimports install-golangci-lint install-shellcheck install-go-licence-detector install-addlicense install-reuse
328325

329326
install-controller-gen: FORCE
330327
@if ! hash controller-gen 2>/dev/null; then printf "\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
@@ -388,10 +385,6 @@ run-golangci-lint: FORCE install-golangci-lint
388385
@golangci-lint config verify
389386
@golangci-lint run
390387

391-
run-modernize: FORCE install-modernize
392-
@printf "\e[1;36m>> modernize\e[0m\n"
393-
@modernize $(GO_TESTPKGS)
394-
395388
run-shellcheck: FORCE install-shellcheck
396389
@printf "\e[1;36m>> shellcheck\e[0m\n"
397390
@find . -type f \( -name '*.bash' -o -name '*.ksh' -o -name '*.zsh' -o -name '*.sh' -o -name '*.shlib' \) -exec shellcheck {} +
@@ -415,7 +408,7 @@ check-reuse: FORCE install-reuse
415408

416409
check-license-headers: FORCE check-addlicense check-reuse
417410

418-
__static-check: FORCE run-shellcheck run-golangci-lint run-modernize check-dependency-licenses check-license-headers
411+
__static-check: FORCE run-shellcheck run-golangci-lint check-dependency-licenses check-license-headers
419412

420413
static-check: FORCE
421414
@$(MAKE) --keep-going --no-print-directory __static-check
@@ -444,10 +437,6 @@ goimports: FORCE install-goimports
444437
@printf "\e[1;36m>> goimports -w -local https://github.com/sapcc/argora\e[0m\n"
445438
@goimports -w -local github.com/sapcc/argora $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...))
446439

447-
modernize: FORCE install-modernize
448-
@printf "\e[1;36m>> modernize -fix ./...\e[0m\n"
449-
@modernize -fix ./...
450-
451440
clean: FORCE
452441
git clean -dxf build
453442

@@ -480,7 +469,6 @@ help: FORCE
480469
@printf "\e[1mPrepare\e[0m\n"
481470
@printf " \e[36minstall-goimports\e[0m Install goimports required by goimports/static-check\n"
482471
@printf " \e[36minstall-golangci-lint\e[0m Install golangci-lint required by run-golangci-lint/static-check\n"
483-
@printf " \e[36minstall-modernize\e[0m Install modernize required by run-modernize/static-check\n"
484472
@printf " \e[36minstall-shellcheck\e[0m Install shellcheck required by run-shellcheck/static-check\n"
485473
@printf " \e[36minstall-go-licence-detector\e[0m Install-go-licence-detector required by check-dependency-licenses/static-check\n"
486474
@printf " \e[36minstall-addlicense\e[0m Install addlicense required by check-license-headers/license-headers/static-check\n"
@@ -498,7 +486,6 @@ help: FORCE
498486
@printf " \e[36mcheck\e[0m Run the test suite (unit tests and golangci-lint).\n"
499487
@printf " \e[36mgenerate\e[0m Generate code for Kubernetes CRDs and deepcopy.\n"
500488
@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"
501-
@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"
502489
@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"
503490
@printf " \e[36mbuild/cover.out\e[0m Run tests and generate coverage report.\n"
504491
@printf " \e[36mbuild/cover.html\e[0m Generate an HTML file with source code annotations from the coverage report.\n"
@@ -512,7 +499,6 @@ help: FORCE
512499
@printf " \e[36mlicense-headers\e[0m Add (or overwrite) license headers on all non-vendored source code files.\n"
513500
@printf " \e[36mcheck-dependency-licenses\e[0m Check all dependency licenses using go-licence-detector.\n"
514501
@printf " \e[36mgoimports\e[0m Run goimports on all non-vendored .go files\n"
515-
@printf " \e[36mmodernize\e[0m Run modernize on all non-vendored .go files\n"
516502
@printf " \e[36mclean\e[0m Run git clean.\n"
517503

518504
.PHONY: FORCE

0 commit comments

Comments
 (0)