Skip to content
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

[beta] Backport cargo publish fixes #10707

Merged
merged 1 commit into from May 27, 2022
Merged

Commits on May 27, 2022

  1. Auto merge of rust-lang#10677 - likzn:fix_publish_p, r=ehuss

    fix(publish): add more check when use `publish -p <SPEC>`
    
    ### Main issue
    As issue say rust-lang#10536 , we need add more check when user use `cargo publish -p <SPEC>`
    
    >`@ehuss` point outs:
    >From a behavior standpoint, here are some things to check:
    > - In the root of a virtual workspace, it should be an error to run without -p.
    >- It should be an error to pass -p for a non-workspace member.
    >- It should be an error for -p to match multiple packages.
    >- When using -p, it should publish that package, not the one in the current directory (which can be different).
    bors authored and ehuss committed May 27, 2022
    Configuration menu
    Copy the full SHA
    735f2c8 View commit details
    Browse the repository at this point in the history