mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
stdenv/problems: avoid creating manual problems attrset
This commit is contained in:
parent
5c89ab858d
commit
b88fba2fba
1 changed files with 3 additions and 4 deletions
|
|
@ -475,7 +475,6 @@ rec {
|
|||
attrs:
|
||||
let
|
||||
pname = getName attrs;
|
||||
manualProblems = attrs.meta.problems or { };
|
||||
in
|
||||
if
|
||||
# Fast path for when there's no problem that needs to be handled
|
||||
|
|
@ -486,10 +485,10 @@ rec {
|
|||
) automaticProblemsConfigCache
|
||||
&& (
|
||||
# No manual problems
|
||||
manualProblems == { }
|
||||
!attrs ? meta.problems
|
||||
# Or all manual problems are ignored
|
||||
|| all (name: handlerForProblem pname name (manualProblems.${name}.kind or name) == "ignore") (
|
||||
attrNames manualProblems
|
||||
|| all (name: handlerForProblem pname name (attrs.meta.problems.${name}.kind or name) == "ignore") (
|
||||
attrNames attrs.meta.problems
|
||||
)
|
||||
)
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue