lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

buildGoModule: remove compatibility layer for directly specified CGO_ENABLED

+4 -16
+3
doc/release-notes/rl-2511.section.md
··· 38 38 39 39 - `python3Packages.bjoern` has been removed, as the upstream is unmaintained and it depends on a 14-year-old version of http-parser with numerous vulnerabilities. 40 40 41 + - `buildGoModule` removes the compatibility layer of `CGO_ENABLED` not specified via `env`. 42 + Specifying `CGO_ENABLED` directly now results in an error. 43 + 41 44 - `buildGoModule` now warns if `<pkg>.passthru.overrideModAttrs` is lost during the overriding of its result packages. 42 45 43 46 - `gentium` package now provides `Gentium-*.ttf` files, and not `GentiumPlus-*.ttf` files like before. The font identifiers `Gentium Plus*` are available in the `gentium-plus` package, and if you want to use the more recently updated package `gentium` [by sil](https://software.sil.org/gentium/), you should update your configuration files to use the `Gentium` font identifier.
+1 -16
pkgs/build-support/go/module.nix
··· 10 10 constructDrv = stdenv.mkDerivation; 11 11 excludeDrvArgNames = [ 12 12 "overrideModAttrs" 13 - # Compatibility layer to the directly-specified CGO_ENABLED. 14 - # TODO(@ShamrockLee): Remove after Nixpkgs 25.05 branch-off 15 - "CGO_ENABLED" 16 13 ]; 17 14 extendDrvArgs = 18 15 finalAttrs: ··· 226 223 GO111MODULE = "on"; 227 224 GOTOOLCHAIN = "local"; 228 225 229 - CGO_ENABLED = 230 - args.env.CGO_ENABLED or ( 231 - if args ? CGO_ENABLED then 232 - # Compatibility layer to the CGO_ENABLED attribute not specified as env.CGO_ENABLED 233 - # TODO(@ShamrockLee): Remove and convert to 234 - # CGO_ENABLED = args.env.CGO_ENABLED or go.CGO_ENABLED 235 - # after the Nixpkgs 25.05 branch-off. 236 - lib.warn 237 - "${finalAttrs.finalPackage.meta.position}: buildGoModule: specify CGO_ENABLED with env.CGO_ENABLED instead." 238 - args.CGO_ENABLED 239 - else 240 - go.CGO_ENABLED 241 - ); 226 + CGO_ENABLED = args.env.CGO_ENABLED or go.CGO_ENABLED; 242 227 }; 243 228 244 229 GOFLAGS =