cargo publish
omits metadata component in version during checking if package is already published
#15031
Labels
C-bug
Category: bug
Command-publish
regression-from-stable-to-stable
Regression in stable that worked in a previous stable release.
S-triage
Status: This issue is waiting on initial triage.
Problem
Starting from 1.83,
cargo publish
fails if a registry contains package with the same {MAJOR}.{MINOR}.{PATCH} but different "build metadata" (after a plus sign) component.Steps
Repro steps:
cargo publish
for package with version0.1.0
.cargo publish
for package with version0.1.0+123
.Actual behavior:
error: crate foobar@0.1.0+123 already exists
.Expected behavior: version
0.1.0+123
should be published.Possible Solution(s)
As temporary workaround, downgrading to 1.82 can be used.
Notes
It may be the same root case as for #15028.
Version
The text was updated successfully, but these errors were encountered: