From 45e85dcf48a1906c61d80fc4ee8e52672d46d019 Mon Sep 17 00:00:00 2001 From: Philip Potter Date: Mon, 6 Jan 2025 11:20:24 +0000 Subject: [PATCH] fix golangci-lint (#169) For go 1.23. --- .golangci.toml | 2 +- script/lint | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.toml b/.golangci.toml index ed57b0e..491246e 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,7 +1,7 @@ [linters] # This is a list of linters we enable beyond the default set. enable = [ - "exportloopref", + "copyloopvar", "gocritic", "goimports", "revive", diff --git a/script/lint b/script/lint index b7929c8..998a056 100755 --- a/script/lint +++ b/script/lint @@ -8,7 +8,7 @@ cd "$(dirname "$0")" cd .. if [ "$GITHUB_ACTIONS" = "true" ]; then - set -- "$@" --out-format=github-actions + set -- "$@" --out-format=colored-line-number fi go generate ./... @@ -17,4 +17,4 @@ if ! git diff --exit-code >/dev/null; then exit 1 fi -exec go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2 run "$@" +exec go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4 run "$@"