-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
stdenv: assertion '(final).hasSharedLibraries' failed #244045
Comments
With something like NixOS/nix#8711 we can deterministically crash the eval:
|
Same issue in NixOS/nix#8701 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-language-evaluation-bug/30582/2 |
This was my fault. The fix is: #244118 Unfortunately we can't provide useful error messages when people use sub-attributes of We should probably move anything fallible (like |
Describe the bug
Nix fails to build
nix
on nixpkgs master.Steps To Reproduce
Steps to reproduce the behavior:
nix-build -E 'with import <nixpkgs> {}; nix'
nix-build -E 'with import <nixpkgs> {}; let unused = {whatever.extensions =[];}; in nix' --show-trace
Expected behavior
Both invocations should succeed as they are isomorphic, i.e.
4.
has an unused let binding that causesnix
to fail.Additional context
Looks like this PR may have introduced the assert that causes the problem #238154 , commit
After some investigation a colleague pointed out that the issue may have to do with the instability of attrset comparison due to laziness in nix, comparison happens here
nixpkgs/pkgs/stdenv/booter.nix
Lines 105 to 108 in 5136088
and looks like invocation in
4.
somehow cause a different evaluation order of attrset attribute comparison:Notify maintainers
@amjoseph-nixpkgs who added the assert that fails
@edolstra @lovesegfault @Artturin nix package maintainers
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: