Skip to content

Build releases with the same Go version that CI tests - #135

Open
okkez wants to merge 1 commit into
masterfrom
align-go-toolchain
Open

okkez wants to merge 1 commit into
masterfrom
align-go-toolchain

Conversation

@okkez

@okkez okkez commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Release binaries were built with whatever Go was the latest stable at tag time, while CI tested with the version in go.mod (1.26.0). This makes both read go.mod and raises it to Go 1.27.

Review notes

  • Raising the go directive to 1.27.0 also requires Go 1.27 or later from anyone importing this module as a library. A toolchain line was considered to avoid that, but bumping the go directive is simpler and does not depend on how setup-go interprets toolchain.
  • setup-go installs exactly the version written in go.mod (CI on master logs Setup go version spec 1.26.0 and go version go1.26.0), so CI and releases will use 1.27.0, not the latest 1.27.x patch. To pick up patch releases, the go line has to be bumped.

Testing

  • With Go 1.27.4 locally: go mod tidy (no go.sum changes), make test, make it, and golangci-lint run (v2.15.0, 0 issues) all passed.
  • Not verified locally with Go 1.27.0 itself; CI on this PR covers that.
  • The release workflow only runs on tag push, so its change is untested until the next release.

- Releases used the latest stable Go while CI used go 1.26.0 from go.mod,
  so release binaries were built with a Go version CI never tested
- Raise the go directive to 1.27.0 and have the release workflow read
  go.mod as CI does
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.34%. Comparing base (bfd0d73) to head (1972a1e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
+ Coverage   80.24%   84.34%   +4.10%     
==========================================
  Files          16       16              
  Lines         572      492      -80     
==========================================
- Hits          459      415      -44     
+ Misses         91       77      -14     
+ Partials       22        0      -22     
Flag Coverage Δ
unittests 84.34% <ø> (+4.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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