refactor(rust-crates-advisory): check type instead of blacklisting
`our-crates` can just check if the attributes in question are derivation (i. e. have an `outPath`) instead of blacklisting the `__readTree` attribute specifically. Change-Id: I472692e89c0e9eff551372c72a73ab765b0b6599
This commit is contained in:
parent
7894d7e178
commit
d904724adf
1 changed files with 2 additions and 3 deletions
|
@ -15,9 +15,8 @@ let
|
||||||
sha256 = "0v086ybwr71zgs5nv8yr4w2w2d4daxx6in2s1sjb4m41q1r9p0wj";
|
sha256 = "0v086ybwr71zgs5nv8yr4w2w2d4daxx6in2s1sjb4m41q1r9p0wj";
|
||||||
}}/crates";
|
}}/crates";
|
||||||
|
|
||||||
our-crates = lib.mapAttrsToList (_: lib.id)
|
our-crates = lib.filter (v: v ? outPath)
|
||||||
# this is a bit eh, but no idea how to avoid the readTree thing otherwise
|
(builtins.attrValues depot.third_party.rust-crates);
|
||||||
(builtins.removeAttrs depot.third_party.rust-crates [ "__readTree" ]);
|
|
||||||
|
|
||||||
check-security-advisory = depot.nix.writers.rustSimple {
|
check-security-advisory = depot.nix.writers.rustSimple {
|
||||||
name = "parse-security-advisory";
|
name = "parse-security-advisory";
|
||||||
|
|
Loading…
Reference in a new issue