mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
update to golangci-lint v1.54.1 + go-ruleguard v0.4.0
That release is the first one with official support for Go 1.21. go-ruleguard must be >= 0.3.20 because of https://github.com/quasilyte/go-ruleguard/issues/449 with Go 1.21. golangci-lint itself doesn't depend on a recent enough release yet, so this was done manually.
This commit is contained in:
@@ -48,6 +48,12 @@ PATH="${GOBIN}:${PATH}"
|
||||
|
||||
invocation=(./hack/verify-golangci-lint.sh "$@")
|
||||
|
||||
# Disable warnings about the logcheck plugin using the old API
|
||||
# (https://github.com/golangci/golangci-lint/issues/4001).
|
||||
# Can be removed once logcheck gets updated to a newer release
|
||||
# which uses the new plugin API
|
||||
export GOLANGCI_LINT_HIDE_WARNING_ABOUT_PLUGIN_API_DEPRECATION=1
|
||||
|
||||
# The logcheck plugin currently has to be configured via env variables
|
||||
# (https://github.com/golangci/golangci-lint/issues/1512).
|
||||
#
|
||||
|
Reference in New Issue
Block a user