-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
tests.buildRustCrate: Fix after hashing method change #105379
Conversation
This only fixes the tests for x86_64-linux, every other platform is still broken. |
Oh good point, didn't think of that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nixpkgs/pkgs/build-support/rust/build-rust-crate/test/default.nix
Lines 161 to 164 in 8275fc2
diff -u ${expectedFilesFile} $actualFiles |\ | |
tail -n +3 |\ | |
sed -e 's/^/ /' | |
exit 1 |
We can probably just exchange this for a loop in which we run state against the given expected file name (which can contain wildcards)?
@andir that sounds good. |
I think it is preferable to separate the tests from the "real" packages.
As @lopsided98 points out in #105305, since the hashes are now target sensative, and until we find reason to actually care to test what they are exactly, we are best just normalizing them away in the tests.
8275fc2
to
ddeef0d
Compare
I liked the idea of running This should now be ready to go. |
Mhm, hydra reports the job as begin removed now: https://hydra.nixos.org/eval/1636253#tabs-removed |
@andir see first commit it's got a new attr path. |
Motivation for this change
As @lopsided98 points out in #105305, we're probably better off not asserting exact hashes, but that is a more involved fix.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)