-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildGoModule: module fod wants different hashes #205842
Comments
Looks like you pinged the members of |
sorry about that all; annoying that I cannot tag @nixos/golang |
No, inconsistent hashes was the primary reason
No, it is case insensitive as well.
See #129730 |
Does this mean your example doesn't have consistent hashes when using I'm getting consistent hashes on both darwin and linux with and without |
That is correct, and why I provided the tarball in the description. I have not been able to reproduce it otherwise, and hopefully that shell of a reproducer does the same on other people's machines. |
I've checked again, still consistent hashes. diff --git a/flake.nix b/flake.nix
index 3790276..1d11b1d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,7 +4,7 @@
pname = "paas-k8s-controller";
version = "latest";
src = ./.;
- vendorHash = "sha256-GUmClldvOyqEiTl8yp3ERFDJ8BP/mDkIABmpwdkVLlg=";
+ vendorHash = "";
proxyVendor = true;
};
};
diff --git a/flake.nix b/flake.nix
index 3790276..abe2c24 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,10 +1,10 @@
{
outputs = {nixpkgs, ...}: {
- packages.x86_64-darwin.default = nixpkgs.legacyPackages.x86_64-darwin.buildGoModule {
+ packages.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.buildGoModule {
pname = "paas-k8s-controller";
version = "latest";
src = ./.;
- vendorHash = "sha256-GUmClldvOyqEiTl8yp3ERFDJ8BP/mDkIABmpwdkVLlg=";
+ vendorHash = "";
proxyVendor = true;
};
};
|
is your second example on linux? |
remote builder |
not sure what to say, but my linux ci system reliably reproduces the other hash: (see the description for system details, it is a different version of nix and single user)
is there additional debugging information I can provide or do? |
I recently noticed that using Can you do a recursive diff of the two store entries? Maybe that will offer a clue? |
#225973 looks related. |
Describe the bug
I have somehow managed to craft a
go.{mod,sum}
(andbuildGoModule
) that wants different hashes forx86_64-linux
andx86_64-darwin
, unsure about other platforms. currently the embedded archive works onx86_64-linux
.Steps To Reproduce
Steps to reproduce the behavior:
0. on
x86_64-darwin
Actual behavior
Additional context
while we are using
proxyVendor = true;
, and this is not the default, I was of the impression that feature derived consistent hashes across platforms. also, while myx86_64-darwin
system does use a case insensitive filesystem, I thought /nix/store did not, and I know that go modules are all lowercase, as they use!wo!rd!s
to representWoRdS
internally.Notify maintainers
@c00w @kalbasit @Mic92 @zowoq
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: