Skip to content

Commit c505008

Browse files
htejunclaude
andcommitted
cargo-publish: fix --ignore pattern for newer cargo error message
cargo now says "already exists on crates.io index" instead of "already uploaded". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d6944d0 commit c505008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cargo-publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def publish(crate, extra_args, ignore_existing):
7171

7272
okay = False
7373
if ignore_existing:
74-
already_re = r'(^.*)(crate.*already uploaded)(.*$)'
74+
already_re = r'(^.*)(crate.*already uploaded|already exists on crates.io)(.*$)'
7575
m = re.match(already_re, stderr[-1])
7676
if m:
7777
print(f'IGNORE: {m.group(1)}{underline(m.group(2))}{m.group(3)}')

0 commit comments

Comments
 (0)