-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Fix failures with pkgs/top-level/release-attrpaths-superset.nix #319220
Conversation
3d69712
to
a5a16a7
Compare
a5a16a7
to
46ca182
Compare
Adding optionalAttrs and protection from non-existent attribute. |
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.
Looks better. Requesting @lheckemann as well, if available.
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.
mostly lgtm but I'm not super stoked we're turning off an entire suite of which a lot looks applicable
@@ -99,6 +99,8 @@ let | |||
in | |||
|
|||
{ | |||
__attrsFailEvaluation = stdenv.isDarwin; |
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.
I'm not the most pleased this entire suite is turned off on Darwin. It's ok if necessary but it's a little unfortunate.
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.
Yeah, it had a funky error without it.
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.
This shouldn't be an issue, idk why it's a problem. I kinda didn't feel like diving into figuring out why this was happening so the easiest solution was to just disable on Darwin. Linux targets work so this is a Darwin only issue. If this isn't a blocker and we can't find a solution before this PR is merged, a follow up PR to properly fix it should be fine.
error:
… while calling the 'map' builtin
at /home/ross/ExpidusOS/nixpkgs/pkgs/top-level/release-attrpaths-superset.nix:193:5:
192| names =
193| map (path: (lib.concatStringsSep "." path)) paths;
| ^
194|
… while evaluating a branch condition
at /home/ross/ExpidusOS/nixpkgs/pkgs/top-level/release-attrpaths-superset.nix:162:9:
161| result =
162| if tried.success
| ^
163| then tried.value
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute '__bootPackages' missing
at /home/ross/ExpidusOS/nixpkgs/pkgs/test/stdenv/default.nix:13:17:
12| earlyPkgs = stdenv.__bootPackages.stdenv.__bootPackages;
13| earlierPkgs = stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages;
| ^
14| # use a early stdenv so when hacking on stdenv this test can be run quickly
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.
there's got to be a way to fix this better because oh i see, this test seems to be making a bunch of pretty linuxy assumptions about the stdenv bootstrap structure.__bootPackages
is certainly not the only attr that is broken in the entirety of nixpkgs, right??
but can you add a FIXME above that disabling, if you do want to defer it; with that change this is lgtm without figuring this out.
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.
also cc @reckenrode as a darwin maintainer noting that this was deferred.
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.
but can you add a FIXME above that disabling, if you do want to defer it; with that change this is lgtm without figuring this out.
Will do.
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.
Added the note.
46ca182
to
013ade6
Compare
Description of changes
Fixes #319147
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.