Skip to content

ci(lint): use golangci-lint v2.13 for Go 1.27 support - #23

Merged
jerpr merged 2 commits into
mainfrom
ci/golangci-lint-go1.27
Sep 15, 2026
Merged

jerpr merged 2 commits into
mainfrom
ci/golangci-lint-go1.27

Conversation

@chrisdeeming

@chrisdeeming chrisdeeming commented Sep 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Bump the golangci-lint-action version input from v2.11 to v2.13.
  • The lint job uses go-version: stable, which now resolves to Go 1.27.1. golangci-lint v2.11 is built with Go 1.26 and panics with file requires newer Go version go1.27 (application built with go1.26) when it type-checks the 1.27 standard library. This is why Lint fails on feat(worktree): create and manage development worktrees #14 and feat(cli): visual and UX polish across all commands #15 and would fail on main today; main's last passing Lint run (17 August) used Go 1.26.6.
  • v2.13.0 is the first golangci-lint release with Go 1.27 support. Dependabot does not bump this input because it only tracks the action SHA.
  • Add .github/workflows/ci.yml to the workflow's own path filters so changes to the lint or test jobs are exercised by CI, the same way ci: publish PHP 8.1–8.3 images #22 did for the image workflow. Without this the first commit here would not have run Lint at all.

Testing

Checklist

  • The change is focused and does not include unrelated work.
  • Relevant automated and/or manual testing has been performed.
  • UI changes include screenshots or video where appropriate.
  • Upgrade, compatibility, and performance implications have been considered.

The lint job installs the stable Go toolchain, which now resolves to
Go 1.27. golangci-lint v2.11 is built with Go 1.26 and panics with
"file requires newer Go version go1.27" when type-checking the newer
standard library. v2.13.0 is the first release built with Go 1.27
support.
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: 165851c6-aa50-48c4-876b-2b82ec7633bf

📥 Commits

Reviewing files that changed from the base of the PR and between c7c6376 and 8bc80f3.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


📝 Walkthrough

Walkthrough

The CI workflow now includes changes to .github/workflows/ci.yml in push and pull-request path filters targeting main. The lint job now uses golangci-lint v2.13.

Changes

CI workflow update

Layer / File(s) Summary
Update CI workflow configuration
.github/workflows/ci.yml
The workflow reruns for changes to its own file. The lint job now uses golangci-lint v2.13 instead of v2.11.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 8bc80

The workflow update has no identified issue preventing merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: updating golangci-lint to v2.13 for Go 1.27 support.
Description check ✅ Passed The description includes a clear summary, testing details, and checklist status. The omitted visual evidence and notes sections are not required for this workflow-only change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

Without this, changes to the lint or test job configuration are not
exercised until an unrelated Go change lands.
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 36.51%. Comparing base (b082823) to head (8bc80f3).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   30.99%   36.51%   +5.51%     
==========================================
  Files          50       49       -1     
  Lines        5307     4820     -487     
==========================================
+ Hits         1645     1760     +115     
+ Misses       3396     3060     -336     
+ Partials      266        0     -266     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jerpr
jerpr merged commit 2525599 into main Sep 15, 2026
10 of 12 checks passed
@jerpr
jerpr deleted the ci/golangci-lint-go1.27 branch September 15, 2026 19:16
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.

2 participants