update golangci-lint to v2.2.2

Signed-off-by: dongjiang <dongjiang1989@126.com>
This commit is contained in:
dongjiang 2025-07-21 19:54:43 +08:00
parent 789494f10b
commit 19d142ead3
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ jobs:
with: with:
verify: true verify: true
args: --timeout=30m args: --timeout=30m
version: v2.1 version: v2.2
# Run Spectral # Run Spectral
- name: Lint OpenAPI spec - name: Lint OpenAPI spec

View File

@ -17,7 +17,7 @@
# renovate: datasource=github-releases depName=kubernetes-sigs/controller-tools # renovate: datasource=github-releases depName=kubernetes-sigs/controller-tools
CONTROLLER_TOOLS_GENERATOR_VERSION=v0.17.2 CONTROLLER_TOOLS_GENERATOR_VERSION=v0.17.2
# renovate: datasource=github-releases depName=golangci/golangci-lint # renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANG_CI_LINTER_VERSION=v2.1.6 GOLANG_CI_LINTER_VERSION=v2.2.2
# Execute # Execute
# scripts/install-tools.sh # scripts/install-tools.sh
@ -78,7 +78,7 @@ install_golangci() {
install=true install=true
fi fi
if [[ "$install" == true ]]; then if [[ "$install" == true ]]; then
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/cc3567e3127d8530afb69be1b7bd20ba9ebcc7c1/install.sh \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/refs/tags/v2.2.2/install.sh \
| sh -s -- -b $(go env GOPATH)/bin "${GOLANG_CI_LINTER_VERSION}" | sh -s -- -b $(go env GOPATH)/bin "${GOLANG_CI_LINTER_VERSION}"
fi fi
} }