782 Commits
Author SHA1 Message Date
nixpkgs-ci[bot]andGitHub f93d88c669 Merge master into staging-next 2026-07-14 18:24:25 +00:00
Tom Herbers cc27836c63 go_1_27: 1.27rc1 -> 1.27rc2 2026-07-08 12:21:41 +02:00
nixpkgs-ci[bot]andGitHub 41c8b60446 Merge staging-next into staging 2026-07-08 00:32:53 +00:00
Ryan BurnsandGitHub e80f5f1f81 go_1_25: 1.25.11 -> 1.25.12 (#539380) 2026-07-07 23:36:03 +00:00
Tom Herbers 3492eab8d4 go_1_25: 1.25.11 -> 1.25.12
Changelog: https://go.dev/doc/devel/release#go1.25.minor
2026-07-07 22:34:59 +02:00
Tom Herbers 97b993b6de go_1_26: 1.26.4 -> 1.26.5
Changelog: https://go.dev/doc/devel/release#go1.26.minor
2026-07-07 22:29:40 +02:00
Paul MeyerandGitHub 065606ff88 go_1_27: init at 1.27rc1 (#533254) 2026-07-06 07:28:18 +00:00
Leon Klingele 67a70befab go_1_27: init at 1.27rc1
https://go.dev/doc/go1.27

fix: vet

The "nixpkgs-vet"[^0] CI job was failing before.

    - Attribute `pkgs.go_1_27` is a new top-level package using `pkgs.callPackage ./pkgs/development/compilers/go/1.27.nix { /* ... */ }`.
      Please define it in pkgs/by-name/go/go_1_27/package.nix instead.
      See `pkgs/by-name/README.md` for more details.
      Since the second `callPackage` argument is `{ }`, no manual `callPackage` in pkgs/top-level/all-packages.nix is needed anymore.
     (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-162)
    This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging.
    error: Cannot build '/nix/store/69y050xrdffqxils57mrqw43cf90i0xf-nixpkgs-vet.drv'.
           Reason: builder failed with exit code 1.
           Output paths:
             /nix/store/kxrknx65q0abw9m5mhpcivwhggpwm7l3-nixpkgs-vet
           Last 6 log lines:
           > - Attribute `pkgs.go_1_27` is a new top-level package using `pkgs.callPackage ./pkgs/development/compilers/go/1.27.nix { /* ... */ }`.
           >   Please define it in pkgs/by-name/go/go_1_27/package.nix instead.
           >   See `pkgs/by-name/README.md` for more details.
           >   Since the second `callPackage` argument is `{ }`, no manual `callPackage` in pkgs/top-level/all-packages.nix is needed anymore.
           >  (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-162)
           > This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging.
           For full logs, run:
             nix log /nix/store/69y050xrdffqxils57mrqw43cf90i0xf-nixpkgs-vet.drv
    To run locally: ./ci/nixpkgs-vet.sh master https://github.com/NixOS/nixpkgs.git
    If you're having trouble, ping @NixOS/nixpkgs-vet

Moving 1.27.nix into `pkgs/by-name/go/go_1_27/package.nix` is impractical because
the file references many sibling files in `pkgs/development/compilers/go/` (patches,
bootstrap files, etc.)

Follow `pkgs/by-name/README.md` and use `inherit` to please the vet linter.

[^0]: https://github.com/NixOS/nixpkgs/actions/runs/27820342521/job/82331726385?pr=533254#step:6:210
2026-06-23 10:39:49 +02:00
Leon KlingeleandVladimír Čunát 9b9b7a4d93 go_1_26: 1.26.3 -> 1.26.4
(cherry picked from commit b359a44a03)
(cherry picked from commit f16209a21ec4da1743f1137e02a62b93c4fe10cd)
2026-06-22 08:21:27 +02:00
Tom Herbers 242fe12299 go_1_25: 1.25.10 -> 1.25.11
Changelog: https://go.dev/doc/devel/release#go1.25.minor
2026-06-03 09:23:58 +02:00
Vladimír Čunát 20fe9246cb Merge branch 'staging' into staging-next
In particular I wanted the security bump of go
2026-05-08 08:36:46 +02:00
Tom Herbers f71a37203b go_1_25: 1.25.9 -> 1.25.10
Changelog: https://go.dev/doc/devel/release#go1.25.minor
2026-05-07 19:02:35 +02:00
Tom Herbers 5d2d08ceef go_1_26: 1.26.2 -> 1.26.3
Changelog: https://go.dev/doc/devel/release#go1.26.minor
2026-05-07 19:00:11 +02:00
Paul Meyer 2db211a324 go: use uplosi as tester instead of athens
athens currently pins Go 1.26, making it unusable for the test.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2026-04-28 11:01:58 +02:00
Leon KlingeleandVladimír Čunát 74d2e9ac61 go_1_26: 1.26.1 -> 1.26.2
(cherry picked from commit 5184d1a93c)
Picking to get into nixpkgs master sooner; original PR: #507704
2026-04-11 11:07:02 +02:00
Tom Herbers f8d24454ca go_1_25: 1.25.8 -> 1.25.9
Changelog: https://go.dev/doc/devel/release#go1.25.minor
2026-04-10 00:24:40 +02:00
nixpkgs-ci[bot]andGitHub 28a1816c41 Merge master into staging-next 2026-03-09 18:17:25 +00:00
Paul MeyerandGitHub 32fe9748a4 go_1_24: bootstrap 1.24.11 -> 1.24.13 (#497107) 2026-03-09 14:53:13 +00:00
Paul MeyerandGitHub ef9ca28bac go_1_25: 1.25.7 -> 1.25.8 (#497159) 2026-03-06 12:57:35 +00:00
nixpkgs-ci[bot]andGitHub 6e30c1786f Merge staging-next into staging 2026-03-06 12:11:32 +00:00
Tom Herbers f043b3a754 go_1_25: 1.25.7 -> 1.25.8
Changelog: https://go.dev/doc/devel/release#go1.25.minor
2026-03-06 11:05:40 +01:00
Leon KlingeleandPaul Meyer e4074f1390 go_1_26: 1.26.0 -> 1.26.1
Signed-off-by: Leon Klingele <git@leonklingele.de>
2026-03-06 08:56:44 +01:00
Leon Klingele bf08a761c4 go_1_24: bootstrap 1.24.11 -> 1.24.13 2026-03-06 06:52:40 +01:00
Paul Meyer 88452f2e1f go_1_24,buildGo124Module: remove
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2026-02-23 08:58:49 +01:00
nixpkgs-ci[bot]andGitHub 7bcc0ece2e Merge master into staging-next 2026-02-11 12:17:24 +00:00
Leon Klingele 534d3daed5 go_1_26: 1.26rc3 -> 1.26.0 2026-02-10 22:54:35 +01:00
Michael Daniels 5e5888f1d3 Merge remote-tracking branch 'upstream/staging-next' into staging 2026-02-04 19:31:22 -05:00
Paul MeyerandGitHub 6f656b00df go_1_26: 1.26rc2 -> 1.26rc3 (#487016) 2026-02-04 20:27:33 +00:00
Paul Meyer bc31523e73 go_1_26: 1.26rc2 -> 1.26rc3
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2026-02-04 20:10:48 +01:00
Paul Meyer c1819e46b9 go_1_24: 1.24.12 -> 1.24.13
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2026-02-04 20:07:29 +01:00
Leon Klingele 466bc97ad9 go_1_25: 1.25.6 -> 1.25.7 2026-02-04 17:29:17 +01:00
nixpkgs-ci[bot]andGitHub c5829b03be Merge staging-next into staging 2026-01-16 12:07:47 +00:00
nixpkgs-ci[bot]andGitHub b55cb3ec25 Merge master into staging-next 2026-01-16 12:07:14 +00:00
Paul MeyerandGitHub 0b3e730ce5 go_1_26: 1.26rc1 -> 1.26rc2 (#480499) 2026-01-16 07:12:00 +00:00
zowoq 27938b8570 go_1_26: 1.26rc1 -> 1.26rc2
Changelog: https://go.dev/doc/devel/release#go1.26
2026-01-16 08:29:52 +10:00
zowoq f7bde566a2 go_1_24: 1.24.11 -> 1.24.12
Changelog: https://go.dev/doc/devel/release#go1.24
2026-01-16 08:29:01 +10:00
Tom Herbers 841730db5c go_1_25: 1.25.5 -> 1.25.6
Changelog: https://go.dev/doc/devel/release#go1.25.minor
2026-01-15 21:09:07 +01:00
nixpkgs-ci[bot]andGitHub be265f7814 Merge staging-next into staging 2025-12-23 18:06:59 +00:00
nixpkgs-ci[bot]andGitHub adba4fe2bc Merge master into staging-next 2025-12-23 18:06:21 +00:00
zowoq 3478176f4b go_1_26: init at 1.26rc1 2025-12-18 07:56:58 +10:00
zowoqandGitHub 316d7bfa21 go: enable structuredAttrs (#470403) 2025-12-17 21:52:01 +00:00
Stefan Frijters 161fd0c2dc go: enable structuredAttrs 2025-12-13 12:05:53 +01:00
Wolfgang Walther 46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
nixpkgs-ci[bot]andGitHub 572d53b673 Merge staging-next into staging 2025-12-03 00:18:15 +00:00
zowoq 658b348ba2 go_1_24: 1.24.10 -> 1.24.11
Changelog: https://go.dev/doc/devel/release#go1.24
2025-12-03 08:01:36 +10:00
Leon Klingele 1160854ac7 go_1_25: 1.25.4 -> 1.25.5 2025-12-02 18:01:23 +01:00
Luna Nova ce37d84094 go: revert default PIE changes
Reverts default PIE patch for go.
Does not reintroduce usages of removed "pie" hardening flag.

I've made a right mess 😿; we have to back go default PIE out late.

building with -race was just reported broken, there isn't time to investigate.
fixing is a mass rebuild.

People are using nixpkgs' go outside of nix derivations to produce
executables to copy into containers. buildGoModule currently sets
buildmode=exe when CGO_ENABLED=0 but this does nothing to maintain the
existing interface for external users.

We are fortunate that backing out the go PIE change in this manner
does not reintroduce breakage of pkgsMusl.rclone etc
that previously occurred when buildmode=pie *wasn't* set.
The gcc `--enable-default-pie` approach turns out to not cause problems
when mixed with a non-PIE go externally linked build. Historical issues
were due to our linker wrapper being less smart about enabling PIE.

Default PIE for go should be revisited post branch off.

Fixes: #456953
Fixes: #461539
2025-11-14 07:32:04 -08:00
Paul MeyerandGitHub 1edaf6d179 go: only apply PIE by default when CGO is enabled (#458867) 2025-11-08 12:25:02 +00:00
Luna Nova 4d1d61c75c go: set buildmode=exe when CGO_ENABLED=0
To avoid breaking previous documented[^1] behavior of CGO_ENABLED=0
producing fully static binaries we set buildmode=exe. Sadly go
does not support static-pie binaries so this means these packages
lose ASLR.

This is likely to be revisited after branch-off, as
go packages in the main package set with CGO_ENABLED=0 not having
ASLR is not good security posture in the long term and makes
go packages inconsistent with other languages.

[1]: See #var-go-CGO_ENABLED

Fixes: #456953
Fixes: 08aadbf8d4
2025-11-06 08:00:41 -08:00