From 9217a6db3c30d5e0e0b56bfb20216c00aca5b24c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 00:15:29 +0000 Subject: [PATCH 1/2] Bump golangci/golangci-lint-action from 3 to 8 in /workflow-templates Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 8. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v8) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- workflow-templates/check-go-task.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow-templates/check-go-task.yml b/workflow-templates/check-go-task.yml index 3d206b65..a89b3e4b 100644 --- a/workflow-templates/check-go-task.yml +++ b/workflow-templates/check-go-task.yml @@ -122,7 +122,7 @@ jobs: version: 3.x - name: Install golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v8 with: version: v1.54 From 0cb07446d5cbfaebae319d901c69d8a6396b69db Mon Sep 17 00:00:00 2001 From: per1234 Date: Fri, 1 Aug 2025 17:33:24 -0700 Subject: [PATCH 2/2] Update "golangci-lint" to 2.3 Support for "golangci-lint" 1.x was dropped starting from version 7.0.0 of the "golangci/golangci-lint-action" GitHub Actions action. The version of "golangci-lint" used by the "Check Go" GitHub Actions workflow is hereby updated to 2.3.x. Changes to the asset "golangci-lint" configuration file were required to accommodate the bump to 2.x: * Addition of `version` key. * Removal of `issues.exclude-use-default` key. The latter is no longer supported because the "golangci-lint" finally came to their senses and stopped disabling arbitrary rules by default. Disabling of rules is now only done when explicitly configured. Since the `issues.exclude-use-default` key in the asset was used only to enable the rules that "golangci-lint" 1.x disabled by default, the equivalent configuration for "golangci-lint" 2.x is achieved by simply removing this key from the configuration file. --- workflow-templates/assets/go/.golangci.yml | 3 +-- workflow-templates/check-go-task.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/workflow-templates/assets/go/.golangci.yml b/workflow-templates/assets/go/.golangci.yml index e51fc523..426aca5a 100644 --- a/workflow-templates/assets/go/.golangci.yml +++ b/workflow-templates/assets/go/.golangci.yml @@ -1,7 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/go/.golangci.yml # See: https://golangci-lint.run/usage/configuration/ -issues: - exclude-use-default: false +version: "2" linters: enable: - revive diff --git a/workflow-templates/check-go-task.yml b/workflow-templates/check-go-task.yml index a89b3e4b..f6a4d0e8 100644 --- a/workflow-templates/check-go-task.yml +++ b/workflow-templates/check-go-task.yml @@ -124,7 +124,7 @@ jobs: - name: Install golangci-lint uses: golangci/golangci-lint-action@v8 with: - version: v1.54 + version: v2.3 - name: Check style env: