Skip to content

CI: format generic methods with stable Go - #1954

Open
mattjohnsonpint wants to merge 1 commit into
stretchr:masterfrom
mattjohnsonpint:mjp/ci-go1.27-gofmt
Open

CI: format generic methods with stable Go#1954
mattjohnsonpint wants to merge 1 commit into
stretchr:masterfrom
mattjohnsonpint:mjp/ci-go1.27-gofmt

Conversation

@mattjohnsonpint

Copy link
Copy Markdown
Contributor

Summary

Run the formatting check only with the stable Go toolchain.

Changes

  • Restrict .ci.gofmt.sh to the stable matrix entry.
  • Continue running generation, vet, and tests with both stable and oldstable Go.

Motivation

PR #1937 adds generic methods supported by Go 1.27.

Go 1.26 cannot parse generic methods, including those in files excluded by build constraints, causing its formatting check to fail. The stable Go 1.27 toolchain can format the complete source tree.

Related issues

Required for #1937

Go 1.26 cannot parse generic methods, even in files excluded by build constraints. Run the formatting check only with stable Go 1.27 while continuing to test oldstable.
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