Commit Graph
1028111 Commits
Author SHA1 Message Date
pancho horrillo b1ba85535d go-mockery: fix env.CGO_ENABLED set to ""
instead of 0.

Note that the official docs specify that only 1 or 0 are valid:
https://pkg.go.dev/cmd/cgo and look for CGO_ENABLED.

If set to 'false', it gets rendered as an empty string:

$ nix derivation show nixpkgs#go-mockery | jq '.derivations[].env | {CGO_ENABLED}'
{
  "CGO_ENABLED": ""
}
$ nix derivation show nixpkgs#go-mockery_2 | jq '.derivations[].env | {CGO_ENABLED}'
{
  "CGO_ENABLED": ""
}

which has the same effect as not defining `env.CGO_ENABLED` at all,
i.e., it generates a dynamically linked executable:

$ nix shell nixpkgs#go-mockery
$ ldd $(which mockery)
	linux-vdso.so.1 (0x00007c440bdd3000)
	libresolv.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libresolv.so.2 (0x00007c440bdb8000)
	libpthread.so.0 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libpthread.so.0 (0x00007c440bdb3000)
	libc.so.6 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6 (0x00007c440ba00000)
	/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/ld-linux-x86-64.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib64/ld-linux-x86-64.so.2 (0x00007c440bdd5000)

ditto for v2:

$ nix shell nixpkgs#go-mockery_2
$ ldd $(which mockery)
	linux-vdso.so.1 (0x000077377575f000)
	libresolv.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libresolv.so.2 (0x0000773775744000)
	libpthread.so.0 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libpthread.so.0 (0x000077377573f000)
	libc.so.6 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6 (0x0000773775400000)
	/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/ld-linux-x86-64.so.2 => /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib64/ld-linux-x86-64.so.2 (0x0000773775761000)

whereas after setting it to 0:

$ nix derivation show .#go-mockery | jq '.derivations[].env | {CGO_ENABLED}'
{
  "CGO_ENABLED": "0"
}
$ nix derivation show .#go-mockery_2 | jq '.derivations[].env | {CGO_ENABLED}'
{
  "CGO_ENABLED": "0"
}

and now the executables are not dynamic, as intended:

$ nix shell .#go-mockery
$ ldd $(which mockery)
	not a dynamic executable

$ nix shell .#go-mockery_2
$ ldd $(which mockery)
	not a dynamic executable
2026-07-08 15:33:43 +02:00
nixpkgs-ci[bot]andGitHub f205b5574f swpui: 0.9.0 -> 0.10.0 (#538752) 2026-07-05 19:27:47 +00:00
nixpkgs-ci[bot]andGitHub 1d3a7d0720 prmers: 4.19.00-alpha -> 4.20.14-alpha-vtrace-memsafe-v63 (#538693) 2026-07-05 19:27:45 +00:00
nixpkgs-ci[bot]andGitHub 9a41a5817a swaytreesave: 0.4.0 -> 0.4.2 (#538665) 2026-07-05 19:27:42 +00:00
Felix BargfeldtandGitHub 4a18a3f445 fastfetch-unwrapped: 2.65.1 -> 2.65.2 (#538717) 2026-07-05 19:02:49 +00:00
R. Ryantm 7dd23e648e swpui: 0.9.0 -> 0.10.0 2026-07-05 18:55:29 +00:00
Michael DanielsandGitHub eaf066ffc5 sslmate: 1.9.1 -> 1.10.0 (#486550) 2026-07-05 18:41:41 +00:00
Michael DanielsandGitHub 106f9f5275 localstack: 4.12.0 -> 4.13.0 (#486134) 2026-07-05 18:41:31 +00:00
Fabian AffolterandGitHub 17a1d57f71 python3Packages.wadllib: 2.0.0 -> 2.1.0 (#538584) 2026-07-05 18:31:17 +00:00
Michael DanielsandGitHub fb5d295446 python3Packages.lib4sbom: 0.9.3 -> 0.9.4 (#472662) 2026-07-05 18:25:53 +00:00
R. RyantmandMichael Daniels 4c595747d3 sslmate: 1.9.1 -> 1.10.0 2026-07-05 14:25:51 -04:00
R. RyantmandMichael Daniels 2761641e2c localstack: 4.12.0 -> 4.13.0 2026-07-05 14:24:41 -04:00
Michael DanielsandGitHub 9147573726 emacsPackages.tsc: 0.18.0 -> 0.19.4 (#473421) 2026-07-05 18:23:11 +00:00
nixpkgs-ci[bot]andGitHub fbdfe58264 oh-my-posh: 29.19.0 -> 29.20.0 (#538602) 2026-07-05 18:19:13 +00:00
Michael DanielsandGitHub f55e91e36f fsverity-utils: 1.6 -> 1.7 (#474224) 2026-07-05 18:17:56 +00:00
Michael DanielsandGitHub 2445e27798 firezone-headless-client: 1.5.5 -> 1.5.6 (#481493) 2026-07-05 18:17:34 +00:00
Michael DanielsandGitHub 2d7bb95357 python3Packages.python-apt: 2.9.9 -> 3.1.0 (#450845) 2026-07-05 18:11:14 +00:00
Michael DanielsandGitHub feb27dfa42 wimlib: 1.14.4 -> 1.14.5 (#485307) 2026-07-05 18:10:08 +00:00
Michael DanielsandGitHub 16ad072a24 stig: 0.14.1a0 -> 0.14.2a0 (#485279) 2026-07-05 18:09:23 +00:00
Michael DanielsandGitHub c375ac785c python3Packages.omniorb: 4.3.3 -> 4.3.4 (#477326) 2026-07-05 18:02:43 +00:00
R. RyantmandMichael Daniels 6d59678cd9 stig: 0.14.1a0 -> 0.14.2a0 2026-07-05 14:01:53 -04:00
R. RyantmandMichael Daniels b25dcd3eb1 wimlib: 1.14.4 -> 1.14.5 2026-07-05 14:01:16 -04:00
Niklas KorzandGitHub 36deb2970e gram: fix darwin build (#538691) 2026-07-05 18:00:08 +00:00
R. RyantmandMichael Daniels db95ac286c firezone-headless-client: 1.5.5 -> 1.5.6 2026-07-05 13:59:34 -04:00
Michael DanielsandGitHub dc7865623f trackma-qt: 0.9 -> 0.10.3 (#481206) 2026-07-05 17:58:07 +00:00
Christian KöglerandGitHub 1fbf821b8e avdl: 0.1.9+1.12.1 -> 0.1.10+1.12.1 (#538700) 2026-07-05 17:55:53 +00:00
Michael DanielsandGitHub 0152fc2442 evilwm: 1.4.3 -> 1.5 (#472948) 2026-07-05 17:54:31 +00:00
Michael DanielsandGitHub 1453b41819 terraform-local: 0.24.1 -> 0.25.0 (#470043) 2026-07-05 17:52:16 +00:00
nixpkgs-ci[bot]andGitHub 443e204170 seafile-shared: 9.0.15 -> 9.0.20 (#477730) 2026-07-05 17:51:42 +00:00
R. RyantmandMichael Daniels 459add8aef python3Packages.lib4sbom: 0.9.3 -> 0.9.4 2026-07-05 13:48:29 -04:00
isabelandGitHub f38d2c6aea python3Packages.beets-ytimport: init at 1.13.0 (#538488) 2026-07-05 17:46:56 +00:00
R. RyantmandMichael Daniels 98737c282d evilwm: 1.4.3 -> 1.5 2026-07-05 13:46:44 -04:00
isabelandGitHub aa30b833ce python3Packages.beets-importreplace: init at 0.3 (#538493) 2026-07-05 17:46:43 +00:00
R. RyantmandMichael Daniels 9b8bcfdee1 emacsPackages.tsc: 0.18.0 -> 0.19.4 2026-07-05 13:46:05 -04:00
R. RyantmandMichael Daniels 7ecd8eb1a6 fsverity-utils: 1.6 -> 1.7 2026-07-05 13:45:34 -04:00
R. RyantmandMichael Daniels ef2619c394 python3Packages.omniorb: 4.3.3 -> 4.3.4 2026-07-05 13:44:53 -04:00
R. RyantmandMichael Daniels 052ed6d3ef trackma-qt: 0.9 -> 0.10.3 2026-07-05 13:43:09 -04:00
Michael DanielsandGitHub c94d374285 fatsort: 1.6.5.640 -> 1.7.679 (#463661) 2026-07-05 17:40:58 +00:00
R. RyantmandMichael Daniels 9c66314ac7 terraform-local: 0.24.1 -> 0.25.0 2026-07-05 13:40:18 -04:00
Michael DanielsandGitHub 138166fa37 flintlock: 0.8.1 -> 0.9.0 (#463423) 2026-07-05 17:39:21 +00:00
Michael DanielsandGitHub 97de25b34c python3Packages.texsoup: 0.3.1 -> 0.3.3 (#508000) 2026-07-05 17:39:02 +00:00
R. RyantmandMichael Daniels ca87cf7b5f fatsort: 1.6.5.640 -> 1.7.679 2026-07-05 13:34:50 -04:00
R. RyantmandMichael Daniels 85622c9ca4 python3Packages.python-apt: 2.9.9 -> 3.1.0 2026-07-05 13:33:34 -04:00
R. RyantmandMichael Daniels a95a7de300 flintlock: 0.8.1 -> 0.9.0 2026-07-05 13:31:16 -04:00
dish bc13a5880d python3Packages.beets-ytimport: init at 1.13.0 2026-07-05 13:27:47 -04:00
Thomas GerbetandGitHub e58be98c76 mysql84: 8.4.9 -> 8.4.10 (#533954) 2026-07-05 17:26:03 +00:00
Thomas GerbetandGitHub b58a5c28d1 docker: 29.6.0 -> 29.6.1 (#538107) 2026-07-05 17:25:44 +00:00
nixpkgs-ci[bot]andGitHub e55e3f4476 stevenblack-blocklist: 3.16.91 -> 3.16.94 (#538247) 2026-07-05 17:25:19 +00:00
R. RyantmandMichael Daniels 6511b07569 python3Packages.texsoup: 0.3.1 -> 0.3.3 2026-07-05 13:16:11 -04:00
Michael DanielsandGitHub da7286fd02 python3Packages.bleak: cleanup, adopt (#517078) 2026-07-05 17:06:29 +00:00