Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ab0b79

Browse filesBrowse 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
Copy full SHA for 0ab0b79

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎attestations.py

Copy file name to clipboardExpand all lines: attestations.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.