Repository navigation
Conversation
The lint job pinned golangci-lint v1.61.0 without installing Go, so it ran against the runner's newer toolchain and failed with spurious typecheck errors. Install Go from go.mod and use golangci-lint v1.64.8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FpCfx4vHgXXz8FocntG7Y2
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the workflow updates.
No open issues 🎉
What changed in this PR
Updates the lint workflow to install the repository’s Go version and use current GitHub Actions and golangci-lint releases, preventing spurious typecheck failures.
Changes:
- Upgraded checkout and golangci-lint actions.
- Added Go installation from
go.mod. - Updated golangci-lint to v1.64.8.
| File | Description |
|---|---|
| .github/workflows/golangci-lint.yml | Aligns the lint workflow with the repository’s Go version and updates its CI action and golangci-lint versions. |
Review effort: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
lintjob fails on every run with about 49 spurioustypecheckerrors, such asdriver.config.StatementTimeoutInSecs undefinedandundefined: NewFile. The cause is that the job pins golangci-lint v1.61.0, which was built with Go 1.23, but never installs Go. The linter then typechecks against whatever newer Go the runner has, which it can't handle. The code itself builds and vets cleanly.This PR:
go.modwithactions/setup-go@v5golangci-lint-actionto v6actions/checkoutto v4Testing
Ticket Link
Unblocks a green lint check for #37 (https://mattermost.atlassian.net/browse/MM-72647).
Generated by Claude Code
Change Impact: 🟢 Low
Changes Breakdown:
+6 -3 Production Changes (100%)
+0 -0 Test Changes (0%)
Regression Risk: The change modifies only the CI workflow file
.github/workflows/golangci-lint.yml, and no application code changes. The main risk is a failing lint job if the golangci-lint v1.64.8 upgrade or the golangci-lint-action v6 upgrade reports new findings.Generated by CodeRabbitAI