Skip to content

Take the CI Go version from go.mod - #6

Merged
umputun merged 1 commit into
masterfrom
ci/go-version-from-go-mod
Nov 1, 2026
Merged

umputun merged 1 commit into
masterfrom
ci/go-version-from-go-mod

Conversation

@paskal

@paskal paskal commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Previously, the workflow pinned the Go version in actions/setup-go separately from go.mod. After this change, CI reads the major and minor version from the go directive in go.mod and installs the latest patch release of it with check-latest: true. go-version-file would install exactly the patch version written in go.mod, such as 1.25.0, so it is not used. go.mod is unchanged.

The resolved version does not change: CI installs the latest Go 1.23 patch release, as before.

On this branch, setup-go installs Go 1.23.12 and the build passes.

CI pinned its Go version separately from go.mod. It now reads the major
and minor version from the go directive and installs the latest patch
release of it.
@paskal
paskal requested a review from umputun as a code owner November 1, 2026 10:45

@umputun umputun 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.

lgtm

@umputun
umputun merged commit dda8f8a into master Nov 1, 2026
4 checks passed
@paskal
paskal deleted the ci/go-version-from-go-mod branch November 1, 2026 19:43
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