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
[clap_derive] version conflict with proc-macro2
#3307
Comments
for reference see Lines 35 to 36 in bd1bf66
and |
Can you provide your
|
I've not run into this myself but this almost sounds like the An easy way to verify this is to backup your |
right, forgot rust handles non-operator versions differently than js packages
sure, the project it is happening on is open-source: Reproduction:
i had now also tried deleting the file, which suddenly everything compiled again (i dont quite understand why though) i had even tried compiling with only clap dependencies (the other dependencies commented out) |
Looks like this is unexpected cargo behavior, so closing this out. No idea if cargo has an issue already or not for this problem or if this is expected.
Removing dependencies in |
i just mentioned i tried this, though i had no clue if this even affected anything
yes definitely looks like a cargo issue, filed as rust-lang/cargo#10307, for anyone interested |
I had this issue after adding the feature derive. I deleted the cargo.lock file but the issue persisted ( I think it was because I had the project open with clion?) I just added the dependency it wanted to the cargo.toml directly The lock file was modified and I removed the dependency and it built. There is an issue open in cargo. rust-lang/cargo#10307 |
Please complete the following tasks
Rust Version
rustc 1.58.0 (02072b482 2022-01-11)
Clap Version
3.0.9
Minimal reproducible code
clap features used:
"derive", "wrap_help", "env"
Steps to reproduce the bug with the above code
Actual Behaviour
Expected Behaviour
no version conflict error
Additional Context
Currently,
clap_derive
requiresquote
at locked version1.0.9
which in turn requiredproc-macro2
at locked version1.0.20
, butclap_derive
requires locked version of1.0.28
forproc-macro2
How can this be fixed:
~
(like~1.0.9
)Debug Output
No response
The text was updated successfully, but these errors were encountered: