🚑 Invert the dists-to-attest validity check
Some checks failed
🧪 / smoke-test (push) Has been cancelled

This bug sneaked into #236 but should not affect many people as the
attestations generation feature is experimental and opt-in.

Fixes #256
This commit is contained in:
Sviatoslav Sydorenko 2024-09-03 10:25:06 +02:00
parent 8a08d61689
commit 0ab0b79471
No known key found for this signature in database
GPG key ID: 9345E8FEA89CA455

View file

@ -58,7 +58,7 @@ def collect_dists(packages_dir: Path) -> list[Path]:
# Make sure everything that looks like a dist actually is one. # Make sure everything that looks like a dist actually is one.
# We do this up-front to prevent partial signing. # We do this up-front to prevent partial signing.
if (invalid_dists := [path for path in dist_paths if path.is_file()]): if (invalid_dists := [path for path in dist_paths if not path.is_file()]):
invalid_dist_list = ', '.join(map(str, invalid_dists)) invalid_dist_list = ', '.join(map(str, invalid_dists))
die( die(
'The following paths look like distributions but ' 'The following paths look like distributions but '