Skip to content

Commit

Permalink
🚑 Invert the dists-to-attest validity check
Browse files Browse the repository at this point in the history
This bug sneaked into #236 but should not affect many people as the
attestations generation feature is experimental and opt-in.

Fixes #256
  • Loading branch information
webknjaz committed Sep 3, 2024
1 parent 8a08d61 commit 0ab0b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attestations.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def collect_dists(packages_dir: Path) -> list[Path]:

# Make sure everything that looks like a dist actually is one.
# 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))
die(
'The following paths look like distributions but '
Expand Down

0 comments on commit 0ab0b79

Please sign in to comment.