-
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
Reject path-based dependencies in cargo package
#3060
Conversation
Port registry::verify_dependencies to the `cargo package` command to perform the local portion of that check. It looks like the package operation doesn't generally make reference to the registry, so skip variant-origin checks until publish time.
Port of the equivalent test from the `cargo publish` command.
(rust_highfive has picked a reviewer for you, use r? to override) |
This is just the test trying to match the actual command output. I guess I can fix the message in |
efde3b1
to
c5e5392
Compare
This lets test result expected output pass the long-line style check.
c5e5392
to
3227546
Compare
Sorry for the noise. The tests don't all pass in my local environments, so it can be hard to tell what needs to be fixed. |
Reject path-based dependencies in `cargo package` `cargo publish` will complain if a package manifest contains a path, rather than registry+version-based dependency. Make `cargo package` do the same so that issue is caught sooner in developer workflow.
☀️ Test successful - cargo-cross-linux, cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64 |
cargo publish
will complain if a package manifest contains a path, rather than registry+version-based dependency. Makecargo package
do the same so that issue is caught sooner in developer workflow.