Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

Summary

CI lint workflow failing because golangci-lint v2.5.0 (built with Go 1.25) panics when analyzing code with Go 1.26.0.

Why

PR #1993 exposed this: the lint workflow uses go-version: stable which now resolves to 1.26.0, but golangci-lint v2.5.0 binary was compiled with Go 1.25 and cannot parse Go 1.26 source files.

Error:

panic: file requires newer Go version go1.26 (application built with go1.25)

What changed

  • .github/workflows/lint.yml: Changed go-version: stablego-version: '1.25'

Pins CI to Go 1.25.x, matching the Go version used to build golangci-lint v2.5.0.

MCP impact

  • No tool or API changes

Security / limits

  • No security or limits impact

Tool renaming

  • I am not renaming tools as part of this PR

Lint & tests

  • Linted locally with ./script/lint
  • Tested locally with ./script/test

Docs

  • Not needed
Original prompt

Pull Request: #1993

Fix CI please, lint errors it seems.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI lint errors Fix CI lint: pin Go 1.25 to match golangci-lint v2.5.0 Feb 11, 2026
@SamMorrowDrums SamMorrowDrums marked this pull request as ready for review February 11, 2026 09:16
@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner February 11, 2026 09:16
Copilot AI review requested due to automatic review settings February 11, 2026 09:16
@SamMorrowDrums SamMorrowDrums merged commit 1d2ad77 into sammorrowdrums/add-schema-cache-http Feb 11, 2026
2 checks passed
@SamMorrowDrums SamMorrowDrums deleted the copilot/fix-ci-lint-errors branch February 11, 2026 09:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins the Go version used by the CI lint workflow to avoid golangci-lint panicking when actions/setup-go resolves stable to a newer Go release than the linter binary supports.

Changes:

  • Update .github/workflows/lint.yml to use go-version: '1.25' instead of go-version: stable.

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