-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Cannot dry-run cargo publish without bumping versions #14721
Copy link
Copy link
Closed
Labels
C-bugCategory: bugCategory: bugCommand-publishS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.regression-from-stable-to-betaRegression in beta that previously worked in stable.Regression in beta that previously worked in stable.
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugCommand-publishS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.regression-from-stable-to-betaRegression in beta that previously worked in stable.Regression in beta that previously worked in stable.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
When a tool like
cargo releaseruns in a dry-run mode, it shouldn't be bumping version numbers. However, as of #14448,cargo publish --dry-runwill fail unless the version numbers are bumpedSteps
Possible Solution(s)
Revert #14448 which makes us lose out on early error reporting. However, if we view publish as plumbing with tools like
cargo releasehandling it, make its not too badSkip #14448's check in dry-run mode or downgrade it to a warning. Deviating behavior between dry-run or not can be confusing and break other workflows.
Tell people to use
cargo package. There are slight behavior differences though.Notes
cargo 1.83.0-beta.2 (15fbd2f 2024-10-08)
Version
No response