Conversation
I don't know why this helps. I don't WANT to know why this helps. This is a horrible hack.
|
I did not build anything but fine by me. |
|
Both |
|
Someone please root cause this.. |
|
Okay, I think I know what's happening... Just need to confirm something 👀 🤣 |
|
Posted my root cause analysis in #425323 (comment) |
|
Well that's extremely cursed. |
|
I guess we could revert this and swap the |
|
Swapping the outputs doesn't solve the issue... The outputs array is converted by Nix to a dictionary ( 😩 ) You can confirm this with |
|
Huh. I always thought that: (in nixpkgs)
$ nix-instantiate --json --eval -A openjdk8.outputs
["out","jre","debug"] |
|
That's true, but |
|
By the way, I found this in the Nix manual (search for "outputs") https://nix.dev/manual/nix/2.30/development/json-guideline.html?highlight=outputs#json-guideline |
|
OK, so I think it's safe to say this is actually properly documented, just not implemented correctly in nixpkgs? In that case we should probably raise an issue about that? |
I think it's the best approach. There are some questions that should be answered before a global fix is proposed:
That and taking into consideration that a global fix would cause a mass rebuild is enough, imo, to warrant a "rfc" (idk if nixpkgs has rfcs or not) on this matter |
|
I don't think relying on output order is the way tbh. The postFixup can be fixed to not do that fairly easily, so it probably should. |
|
Good point! I also found this nixpkgs/pkgs/build-support/testers/expect-failure.sh Lines 46 to 50 in 11bd9ca Do you have any ideas on how to improve the |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
I don't know why this helps. I don't WANT to know why this helps. This is a horrible hack.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.