-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Latest released version does not compile #9124
Comments
Hitting this issue in the cargo-udeps CI as well. cargo install --locked works, which means it's likely due to a dependency update. If I do the following, I can reproduce the issue on cargo-udeps master:
(It doesn't reproduce without that) cc @dtolnay |
Already happens when I do:
And it does not happen when I run it for syn only, so I suspect it's either due to a serde or serde_derive change, between the 1.0.121 and 1.0.122 versions. changes link. |
I didn't mention in the initial post, but I actually got the issue when building Not sure what is the release policy of |
@ia0 release policy of the cargo crate is to release the new version on crates.io whenever there is a new release of rust/rustc. There is also a 6 week beta waiting period. So if the fix arrives in an "ordinary" way it'll take until March 25... hopefully it's realized that this is untenable, but let's see. |
Oh I see, that's good to know. Thanks for the info! I guess I'll just disable the cargo outdated test in my CI until this is fixed. This is not a big issue for me. I just felt I had to report it. |
You can also try if |
The tool doesn't build due to rust-lang/cargo#9124.
Yes it works, thanks! |
We discussed it in today's Cargo meeting. We are good to do a patch release of the library when a PR bacporting #9101 is merged. |
@Eh2406 that'd be awesome! |
as a workaround for rust-lang/cargo#9124.
as a workaround for rust-lang/cargo#9124.
Backport #9102 to the 1.50 release branch As per #9124 (comment) here is a backport of #9102
0.50.1 is out now (and the latest released version). I confirm that running |
Did 0.50.1 get taken down again? I amended the HomeBrew formula on my mac to pull 0.50.1 and it failed "fatal: couldn't find remote ref refs/tags/0.50.1". Just had a look under tags/releases here and I don't see it. |
@arkonbob the release is available on crates.io, but it seems to not have been tagged in git. If you obtain cargo via the git dependency, you will have to use the raw commit hash of the release (or maybe maintainers can tag it). The vcs info json accompanying the crates.io release indicates that the release commit is d61c808. |
Tagged. Thank you for finding the relevant links. |
Bump rust cargo to version 0.50.1 since build on Mac OS X did fail, see also this bug discription: rust-lang/cargo#9124
This works around the cargo compilation issue here: rust-lang/cargo#9124
Problem
The
cargo
library doesn't build at 0.50.0 (latest released version) and 0.52.0. However it does at master.Steps
git checkout 67a00f95b
(supposedly 0.50.0) orgit checkout 60143816b
(supposedly 0.52.0)cargo build --release --lib
Possible Solution(s)
Bump and release version 0.53.0.
Notes
Output of
cargo version
:cargo 1.51.0-nightly (c3abcfe8a 2021-01-25)
Output of
rustc version
:rustc 1.51.0-nightly (04caa632d 2021-01-30)
The text was updated successfully, but these errors were encountered: