Skip to content

go, buildGoModule: default to 1.27 - #570062

Merged
SuperSandro2000 merged 1 commit into
NixOS:stagingfrom
GraysonTinker:bump-default-go
Oct 14, 2026
Merged

SuperSandro2000 merged 1 commit into
NixOS:stagingfrom
GraysonTinker:bump-default-go

Conversation

@GraysonTinker

@GraysonTinker GraysonTinker commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Thanks to Go's stability guarantees, this should cause very little breakage. With 1.27.2 out, this is ready to go.

Dropping 1.25 was already handled in #563177.
This is the Go version bump policy: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/go/README.md. (Point one of this policy isn't actually being complied with, however, and should probably be updated to match current practice.)
#381448 is another example of a simple bump, without requiring extensive testing or review.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-darwin: 2501-5000 This PR causes many rebuilds on Darwin and should target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Oct 4, 2026
@Scrumplex Scrumplex moved this to Backlog in 26.11 Blockers Oct 4, 2026
@aidandenlinger aidandenlinger mentioned this pull request Oct 8, 2026
5 of 13 tasks
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@whispersofthedawn

whispersofthedawn commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

if you wait three or so hours, ci (https://github.com/NixOS/nixpkgs/actions/workflows/periodic-merge-6h.yml) will automatically merge master → staging-next → staging, and then you can base this pr off of the staging-next/staging merge base while still getting go 1.27.2. that should minimize rebuilds for testing while still getting up-to-date stuff.

@GraysonTinker

Copy link
Copy Markdown
Member Author

Will do, forgot about the delay, oops :)

@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review October 8, 2026 21:03

Review dismissed automatically

@GraysonTinker
GraysonTinker marked this pull request as ready for review October 9, 2026 01:37
@GraysonTinker
GraysonTinker requested a review from a team October 9, 2026 01:47
@whispersofthedawn

whispersofthedawn commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

a quick statement of intent: we need to be on 1.27 for 26.11, so unless we find some catastrophic bugs while testing, i intend to merge this for the next staging-next cycle (in about two weeks). that should give us enough time (notably, zhf) to handle any regressions (e.g. pinning packages to 1.26) for any reason, since historically there has been some amount of breakage from go updates despite go's compatibility promise.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 13, 2026
@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Oct 14, 2026
Merged via the queue into NixOS:staging with commit 16d769d Oct 14, 2026
32 of 34 checks passed
@GraysonTinker
GraysonTinker deleted the bump-default-go branch October 14, 2026 01:49
@GraysonTinker GraysonTinker moved this from Ready to Done in 26.11 Blockers Oct 16, 2026
@a4blue a4blue mentioned this pull request Nov 10, 2026
3 of 13 tasks
mirkobrombin pushed a commit to Containerpak/cpak that referenced this pull request Nov 18, 2026
nixpkgs switched `buildGoModule` to be on Go v1.27 by default on [2026-11-07](NixOS/nixpkgs#580394). (See [this pull request](NixOS/nixpkgs#570062) for more information)

cpak uses Go v1.26.9 in its flake, which make v1.27 patches in nixpkgs failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 2501-5000 This PR causes many rebuilds on Darwin and should target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants