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

Make the rust-version error recommend cargo update --precise -p crate@ver #10891

Merged
merged 2 commits into from
Aug 9, 2022

Commits on Aug 8, 2022

  1. Make the rust-version error recommend `cargo update -p crate@ver --…

    …precise ...`
    
    People encountering a dependency with a newer `rust-version` requirement
    may not know about `cargo update --precise`, or may consider alternate
    approaches that may be harmful (such as pinning with a `=` dependency).
    
    Provide specific guidance in the error message.
    
    If the user is using `cargo install`, suggest `cargo install --locked` instead.
    joshtriplett committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    dcbb433 View commit details
    Browse the repository at this point in the history
  2. Only show advice to use cargo update --precise for non-local packages

    Packages in the local workspace can't get updated this way; the user
    just needs to point to a different source, or otherwise update the
    package themselves.
    joshtriplett committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    934e790 View commit details
    Browse the repository at this point in the history