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

cargo add crate-name & cargo add crate_name have different results when crate_name is already present #13304

Closed
GrigorenkoPV opened this issue Jan 16, 2024 · 1 comment
Labels
C-bug Category: bug Command-add S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review

Comments

@GrigorenkoPV
Copy link

Problem

Example manifest:

[package]
name = "add"
version = "0.0.0"

[dependencies.derive_more]
version = "0.99"
default-features = false
features = ["display"]

Steps

cargo add derive_more changes nothing.
cargo add derive-more resets chosen features and sets the version to latest available.

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.76.0-beta.5 (ddec30889 2024-01-02)
release: 1.76.0-beta.5
commit-hash: ddec30889aff0c38118bcbeb59597d0bd85eddcd
commit-date: 2024-01-02
host: x86_64-unknown-linux-gnu
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.5.0-DEV (sys:0.4.70+curl-8.5.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Arch Linux Rolling Release [64-bit]
@GrigorenkoPV GrigorenkoPV added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Jan 16, 2024
@epage epage added Command-add S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review and removed S-triage Status: This issue is waiting on initial triage. labels Jan 16, 2024
@epage
Copy link
Contributor

epage commented Jan 16, 2024

Looks like this is a duplicate of #10680 and closing in its favor. If there is a reason to keep this open, let us know!

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug Command-add S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review
Projects
None yet
Development

No branches or pull requests

2 participants