GitHub Actions: Use latest golangci-lint and its GitHub Action

The version we were previously using does not support Go v1.24.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
This commit is contained in:
Martin Atkins
2025-02-24 17:24:46 -08:00
parent 620b449533
commit 2b4e7b7def
2 changed files with 3 additions and 3 deletions

View File

@@ -210,9 +210,9 @@ jobs:
exit 1
fi
- name: "Code linting"
uses: golangci/golangci-lint-action@e60da84bfae8c7920a47be973d75e15710aa8bd7 # v6.3.0
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
with:
version: v1.62
version: v1.64.5
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8

View File

@@ -47,7 +47,7 @@ protobuf:
# Golangci-lint
.PHONY: golangci-lint
golangci-lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
# Run license check
.PHONY: license-check