Skip to content

Read the Go version from go.mod in this repo's own workflows - #144

Merged
charlesgreen merged 1 commit into
mainfrom
chore/single-go-pin
Aug 9, 2026
Merged

Read the Go version from go.mod in this repo's own workflows#144
charlesgreen merged 1 commit into
mainfrom
chore/single-go-pin

Conversation

@charlesgreen

Copy link
Copy Markdown
Contributor

Same consolidation as aixgo-dev/aixgo#239 and aixgo-dev/aixgate#12: the Go patch version lives in go.mod's new toolchain go1.26.5 directive (latest stable), and check/release/tag-release read it via go-version-file. The one-entry version matrices are gone (checks-pass aggregates by job id, so the required check is unaffected).

The reusable workflow (aixgo.yml) deliberately keeps its floating go-version: "1.26" and now carries a comment explaining why: it runs in the adopter's checkout, where go-version-file would read the adopter's go.mod rather than ours.

make check green, including the workflow validation gate.

check, release, and tag-release pinned a floating "1.26" in five
places; they now read go.mod, which carries a toolchain directive at
go1.26.5, so a patch bump is one line. The reusable workflow keeps the
floating constraint on purpose and now says why: it sets up Go in the
adopter's checkout, where go-version-file would read their go.mod, not
ours.
@charlesgreen
charlesgreen merged commit b0f5205 into main Aug 9, 2026
2 checks passed
@charlesgreen
charlesgreen deleted the chore/single-go-pin branch August 9, 2026 22:23
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.

1 participant