Skip to content

Commit 0ab0b79

Browse files
committed
🚑 Invert the dists-to-attest validity check
This bug sneaked into #236 but should not affect many people as the attestations generation feature is experimental and opt-in. Fixes #256
1 parent 8a08d61 commit 0ab0b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

attestations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def collect_dists(packages_dir: Path) -> list[Path]:
5858

5959
# Make sure everything that looks like a dist actually is one.
6060
# We do this up-front to prevent partial signing.
61-
if (invalid_dists := [path for path in dist_paths if path.is_file()]):
61+
if (invalid_dists := [path for path in dist_paths if not path.is_file()]):
6262
invalid_dist_list = ', '.join(map(str, invalid_dists))
6363
die(
6464
'The following paths look like distributions but '

0 commit comments

Comments
 (0)