-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cloning Specific Version from Crates.io #17
Comments
Any update on this? |
It is even worse:
|
@JanLikar is it possible to clone a specific version? May be I am missing something? |
The version argument gets passed to cargo and is not altered by cargo-clone in any way. I guess this is the default behaviour... The only thing I can say at this time is, I will have to check what builtin commands do with the version specification and mimic that, because mirroring Cargo builtins is one of the goals of this crate. |
rust-lang/cargo#4229 may include the answer to this issue. It looks as if wrapping the passed down arguments explicitly in quotation marks will make sure it gets parsed correctly, and the ranges will be respected. Edit: I was finally able to test this and also does not work. Interesting, will keep digging. |
Just use whatever the equivalent of |
this is still broken |
I'll see what I can do, I have some time for this now. |
I'm trying to clone a specific version of a crate from Crates.io using this command. The crate version is 64.0.0. If i run
cargo clone --vers 64.0.0 onig_sys
I get version 64.0.1 rather than 64.0.0. I can clone 63.0.0 successfully. It looks like the--vers
string is being treated as^64.0.0
not=64.0.0
.I tried using
=64.0.0
and<=64.0.0
but got the errorerror: cannot parse '=64.0.0' as a semver
.The text was updated successfully, but these errors were encountered: