Skip to content

ci: upgrade golangci-lint and setup-go actions#200

Open
arran4 wants to merge 5 commits intomainfrom
fix-golangci-lint-workflow-12794252605579295210
Open

ci: upgrade golangci-lint and setup-go actions#200
arran4 wants to merge 5 commits intomainfrom
fix-golangci-lint-workflow-12794252605579295210

Conversation

@arran4
Copy link
Copy Markdown
Owner

@arran4 arran4 commented Apr 4, 2026

Upgraded actions/setup-go to v6 and fixed the go.mod specification using go-version. Also updated the golangci-lint-action to v9 to ensure compatibility with Go 1.25.0 as specified in the go.mod file.


PR created automatically by Jules for task 12794252605579295210 started by @arran4

Updates `.github/workflows/ci.yml` to use `actions/setup-go@v6` with `go-version` instead of `go-version-file` to properly parse the `go.mod` configuration. It also upgrades `golangci/golangci-lint-action` to version `v9` to resolve an issue where the older version was using an incompatible Go release.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 3 commits April 4, 2026 06:43
Updates `.github/workflows/ci.yml` to revert the usage of `go-version: go.mod` back to `go-version-file: go.mod` since that is the correct parameter name for `actions/setup-go`. Also upgraded remaining references of `actions/setup-go@v5` to `v6` across all jobs in the workflow.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
Adds `version: 2` to `.golangci.yml` which is required when running newer versions of `golangci-lint` (like v2.11.4 triggered by `golangci-lint-action@v9`). This resolves the "unsupported version of the configuration" CI error.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
Replaces the deprecated `issues.exclude-use-default` field with the modern `linters.exclusions.presets` equivalent (`[]` to explicitly mimic `exclude-use-default: false`) to resolve the "unsupported version of the configuration" and "additional properties 'exclude-use-default' not allowed" schema validation errors from `golangci-lint` v2. Also removes the unsupported `version: 2` top-level key.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
@arran4
Copy link
Copy Markdown
Owner Author

arran4 commented Apr 4, 2026

@jules completely remove the lint config and add stuff only as necessary but it should work fine unconfigured as the defaults are good

Deletes the `.golangci.yml` file, allowing `golangci-lint` to run with its default configuration instead. This addresses the PR feedback to rely on standard defaults rather than maintaining a custom configuration.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant