-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo package
never repackages
#2799
Comments
{ removed, my bad, the message happens only if you have uncommited changes to CVS } cc @alexcrichton seems like a serious issue to me |
Yeah this was done initially with the intent of smoothing the Gonna tag this E-easy as it should be a simple modification with an easy-enough test to add, and I'll try to get around to it if no one else does before the end of the next cycle. |
cargo package: overwrite existing tarballs Previously, cargo package did not do anything if a tarball already existed. This is wrong, because the source may have changed and cargo does not do any dependency tracking for package tarballs yet, so it did not notice this. This commit changes cargo package to always overwrite existing tarballs, which works fine until proper dependency tracking is implemented. Fixes #2799
If you run
cargo package
to completion, change something in your crate, and then run it again, a new package will not be generated. You can change anything, add/remove source files, modify the build script, change dependencies, include features, go on vacation for 2 weeks, andcargo package
will still do nothing. The only thing that triggers a rebuild is manually deleting the appropriate.crate
file intarget/package
or changing the crate version or name inCargo.toml
.Since
cargo publish
just runsops::package
before uploading, it suffers from the same behaviour.I think the same freshness check for
cargo build
should be used forcargo package
.The text was updated successfully, but these errors were encountered: