-
Notifications
You must be signed in to change notification settings - Fork 390
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
libgit2-sys 0.13.3
version issue
#838
Comments
You'll need at least Rust 1.60. @joshtriplett Perhaps we should yank the release and move #833 to the next semver release (0.14)? |
noted about the rust |
@ehuss Just libgit2-sys, not git2? That probably wouldn't be too disruptive, since people don't tend to depend on libgit2-sys directly and use its types. However, I'm not sure that'd actually solve the problem. Wouldn't Cargo still fail to find a matching libgit2-sys for 0.14 just as it does for 0.13.3? |
Nah, I think it would need to be both git2 and libgit2-sys. Yanking isn't a full solution. If we make a new semver bump and a user tries to use This is one of the hazards of using this new syntax. My personal feeling is to wait at least a few months before switching to new stable things to reduce the likelihood of someone running into this kind of problem. But every project has its own guidelines. |
git2 0.14 was already rather disruptive; I'm hoping we don't need to move to a new semver-breaking version anytime soon. I can see another possibility that would eliminate this particular issue: we could yank the latest git2 crate, and upload a new version of git2 that uses weak dependency syntax in git2's |
I get the same issue with the latest
Is there any workaround for this? I just can't build a test project after just adding |
looks like using |
This issue manifests because libgit2-sys uses a new Cargo feature, so new versions of it aren't visible to old Cargo. While it won't help existing versions of Cargo, for future versions like this, ideally we should improve Cargo's handling of unknown versions, to detect if it encountered versions it didn't understand, and then report that you might want to upgrade Cargo. See rust-lang/cargo#10623 for discussion of that issue. |
I get:
Which is true, this version does not exist. What's on there is: 0.14.0+1.5.0 |
"w e're here"
|
It looks like the version scheme does not match what is specified in
Cargo.toml
git2-rs/Cargo.toml
Line 23 in 9d33858
This caused some build issue:
The text was updated successfully, but these errors were encountered: