-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 --list requires all dependencies to be published in 1.43.0 #8151
Comments
If you're poking around, there's also this check that'd be great to remove from
|
@sfackler I think that warning/error is addressed by rust-lang/rfcs#2906 |
Any chance of folding the fix for this into 1.34.1? cc @Mark-Simulacrum |
I'm happy to do so on release team side, @ehuss or @rust-lang/cargo, can someone sign off on that? I can work on a backport and such tomorrow. |
Seems fine to me. @Mark-Simulacrum or @sfackler are you ok with submitting all the PRs? At a minimum, #8138 will also need to be included to get CI to pass. I think stable will also need #8080, and maybe #8098. There might be others. |
I will try to do the legwork (most likely self approving if no one objects) later today. |
…roalbini [stable] 1.43.1 release * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430] * [Fixed the stabilization of AVX-512 features.][71473] * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151] [71430]: rust-lang#71430 [71473]: rust-lang#71473 [cargo/8151]: rust-lang/cargo#8151
Allow `cargo package --list` even for things that don't package. `cargo package --list` was changed in rust-lang#7905 to generate `Cargo.lock` earlier. If there is a problem, then it would fail where previously it would succeed. This changes it so that file generation is deferred until after `--list`. This also changes it so that the "dependencies must have a version" check is deferred until after `--list` as well. Closes rust-lang#8151
Pkgsrc changes: * None. Upstream changes: Version 1.43.1 (2020-05-07) =========================== * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430] * [Fixed the stabilization of AVX-512 features.][71473] * [Fixed `cargo package --list` not working with unpublished dependencies.] [cargo/8151] [71430]: rust-lang/rust#71430 [71473]: rust-lang/rust#71473 [cargo/8151]: rust-lang/cargo#8151
I have some internal distribution packaging logic that uses
cargo package --list
to find the set of files it should bundle up along with the binary (respecting gitignore, include/exclude, etc).However, in 1.43 it appears that the command now requires any dependencies of the crate be published for it to work.
Test repository: https://github.com/sfackler/package-regression
On 1.42.0:
On 1.43.0:
The text was updated successfully, but these errors were encountered: