treewide: go-modules -> goModules#242905
Conversation
1436ce3 to
c9b8d09
Compare
c69f955 to
406c439
Compare
In 787af0f I had to change ${go-modules} to $goModules to allow overrideAttrs to work; However, env vars cannot contain -, so i had to change go-modules too. This in turn broke nix-update because it uses the go-modules attr. Instead of making nix-update more complicated, make go-modules naming match cargoDeps. `fd --type f | xargs sd '\bgo-modules\b' 'goModules'` and revert change to pkgs/applications/misc/dstask/default.nix and pkgs/servers/http/dave/default.nix and pkgs/os-specific/darwin/plistwatch/default.nix release note added
|
There are various go packages that broke due to this merge. (They build again when I revert this merge. I'm looking at /cc PR #244111 EDIT: more packages I've noticed regressing because of this: goofys, tinygo |
|
Weird that a attr name change would affect the build |
|
I get a failure on master too so the issue is not related to this change, instead the issue has been there for maybe a long time and just hasn't shown because the go-modules is a FOD. The name change causes a rebuild but not a hash change |
|
We can work around the issue by not causing a rebuild diff --git a/pkgs/build-support/go/module.nix b/pkgs/build-support/go/module.nix
index ced7873e6a2b..6c2284a7a98d 100644
--- a/pkgs/build-support/go/module.nix
+++ b/pkgs/build-support/go/module.nix
@@ -54,7 +54,7 @@ let
goModules = if (vendorHash == null) then "" else
(stdenv.mkDerivation {
- name = "${name}-goModules";
+ name = "${name}-go-modules";
nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ go git cacert ]; |
|
the last message from |
|
on master and staging-next This PR didn't cause any issues, but instead exposed buggy behavior in new go versions |
This is a workaround to avoid exposing non-reproducible .goModules At least for now. #242905 (comment)
|
OK, I took your workaround to avoid immediate breakage for now. (7da39a7) |
|
Will need to add snippets like this broken = true; # vendor isn't reproducible with go > X.XX: nix-build -A $name.goModules --checkBut it can wait. go vendoring is buggy :( |
|
This situation has been like this at least since the go bump from 1.19 to 1.20 and probably before. We should mark all those packages broken to finally get some maintainer attention, so that they fix their packages.
Go vendor is first a bitch and if anything is off, it breaks. |
We already have some of those from previous go bumps and I am creating a PR right now to add more of those, so that people that are interested in those softwares speak up and fix them. |
|
I have created #245159 with all failing builds I found in the history of this and want to get some awareness and attention to fix those. |
|
Thanks Sandro |
In 787af0f #241707
I had to change ${go-modules} to $goModules to allow overrideAttrs to work; However, env vars cannot contain -, so i had to change go-modules too. This in turn broke nix-update because it uses the go-modules attr.
Instead of making nix-update more complicated, make go-modules naming match cargoDeps.
fd --type f | xargs sd '\bgo-modules\b' 'goModules'and revert change to pkgs/applications/misc/dstask/default.nixrelease note added
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)