-
-
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
buildDotnetModule: inherit enableParallelBuilding #339335
Conversation
After this change, enableParallelBuilding defaults to true for packages using buildDotnetModule. The argument value already defaults to true, but we did not use it. Note that default values in Nix are not present in the arguments attribute set, e.g. `args` does not contain `def` for `{ def ? true }@Args: …` function unless this argument is explicitly passed.
Result of 1 package marked as broken and skipped:
4 packages failed to build:
66 packages built:
|
Result of 1 package marked as broken and skipped:
70 packages built:
|
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.
Good find. Most of @args
is a bit of a mess. There are a lot of unused default values, as well as things that should be stripped before stdenv. At least it looks like the rest of the default values are all null/false/[].
Cc: @NixOS/dotnet
@@ -25,6 +25,8 @@ buildDotnetModule (finalAttrs: { | |||
hash = "sha256-FzQphMhiC1g+6qmk/R1v4rq2ldy35NcaWm0RR1UlwLA="; | |||
}; | |||
|
|||
enableParallelBuilding = false; |
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 assume you tried to build in parallel but it failed?
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.
It was in the first nixpkgs-review, on aarch64-linux. Something we should look into.
Result of 2 packages marked as broken and skipped:
45 packages built:
|
Result of 93 packages built:
|
Description of changes
After this change, enableParallelBuilding defaults to true for packages using buildDotnetModule. The argument value already defaults to true, but we did not use it. Note that default values in Nix are not present in the arguments attribute set, e.g.
args
does not containdef
for{ def ? true }@args: …
function unless this argument is explicitly passed.References:
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.