Skip to content

ci: pin Go 1.27 and golangci-lint v2.15 - #126

Merged
miniprow[bot] merged 2 commits into
openvex:mainfrom
cpanato:golangci-lint-v2.15
Oct 25, 2026
Merged

miniprow[bot] merged 2 commits into
openvex:mainfrom
cpanato:golangci-lint-v2.15

Conversation

@cpanato

@cpanato cpanato commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Lint has failed on every PR since at least 10-14, including the dependabot ones and #125. The job installed the current stable Go (now 1.27.3) but pinned golangci-lint v2.13, which predates Go 1.27 and can't read its export data:

could not load export data: internal error in importing "cmp"
(cannot decode "cmp", export data version 5 is greater than maximum supported version 4)
  • Bump golangci-lint to v2.15, which is built with Go 1.27. It reports 0 issues on main.
  • Set go-version: '1.27' with check-latest: true in the lint, test and release workflows, instead of the latest stable (lint) or go.mod's version (test, release). The jobs now get the latest 1.27 patch and change minor version only when the workflows do. A new Go minor release is what broke lint.
  • Drop the resolve-versions job, which only fed the lint job's Go version.

actionlint is clean, and zizmor reports one finding fewer than on main: the removed job's checkout.

🤖 Generated with Claude Code

The lint job installs the current stable Go (now 1.27.3) but pinned
golangci-lint v2.13, which predates Go 1.27 and cannot read its export
data ("export data version 5 is greater than maximum supported version
4"), so lint has failed on every PR since. v2.15 is built with Go 1.27
and reports no issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Carlos Panato <cpanato@chainguard.dev>
@miniprow

miniprow Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, puerco

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cpanato
cpanato requested a review from puerco October 25, 2026 13:55
The lint job used the current stable Go (from go/versions) and the test
and release jobs used go.mod's version, so the toolchain moved on its
own: a new Go release is what broke lint. Set go-version '1.27' with
check-latest in all three, so jobs get the latest 1.27 patch and change
minor version only when the workflows do. Drop the resolve-versions job,
which only fed the lint job's version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Carlos Panato <cpanato@chainguard.dev>
@cpanato cpanato changed the title ci: bump golangci-lint to v2.15 ci: pin Go 1.27 and golangci-lint v2.15 Oct 25, 2026

@puerco puerco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!

@miniprow miniprow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files lgtm Indicates that a PR is ready to be merged (Looks Good To Me) labels Oct 25, 2026
@miniprow
miniprow Bot merged commit 2730e50 into openvex:main Oct 25, 2026
6 checks passed
@cpanato
cpanato deleted the golangci-lint-v2.15 branch October 25, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files lgtm Indicates that a PR is ready to be merged (Looks Good To Me)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants