mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
ci/eval/compare: remove package validity check
This should not be necessary anymore, because packages that fail to
evaluate should already be filtered out by the attrpath generation step
in main eval.
(cherry picked from commit 0753aa4580)
This commit is contained in:
committed by
github-actions[bot]
parent
7dd8ed0a70
commit
f6634a6670
@@ -27,25 +27,9 @@ let
|
||||
name = name;
|
||||
}) (changedattrs ++ removedattrs);
|
||||
|
||||
validPackageAttributes = builtins.filter (
|
||||
pkg:
|
||||
if (lib.attrsets.hasAttrByPath pkg.path pkgs) then
|
||||
(
|
||||
let
|
||||
value = lib.attrsets.attrByPath pkg.path null pkgs;
|
||||
in
|
||||
if (builtins.tryEval value).success then
|
||||
if value != null then true else builtins.trace "${pkg.name} exists but is null" false
|
||||
else
|
||||
builtins.trace "Failed to access ${pkg.name} even though it exists" false
|
||||
)
|
||||
else
|
||||
builtins.trace "Failed to locate ${pkg.name}." false
|
||||
) enrichedAttrs;
|
||||
|
||||
attrsWithPackages = builtins.map (
|
||||
pkg: pkg // { package = lib.attrsets.attrByPath pkg.path null pkgs; }
|
||||
) validPackageAttributes;
|
||||
) enrichedAttrs;
|
||||
|
||||
attrsWithMaintainers = builtins.map (
|
||||
pkg:
|
||||
|
||||
Reference in New Issue
Block a user