-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Crate fails to compile #570
Comments
Hi! Unfortunately I'm currently in the middle of moving to a new apartment, and debugging is hard when everything is being put into boxes 😅 If you happen to have some spare time to look into it, I'd recommend looking at the directory
That's the equivalent of the command that cargo-semver-checks runs under the hood to generate the rustdoc which is currently failing. It should reproduce the If you don't have time to look into this, no worries. I'll need a few weeks to settle into my new place, and I'll try to circle back after that. |
Sorry for the wait! I finally had a bit of time to dig into this issue: I was able to confirm that this crate indeed fails to build, and the issue is not in
The This is an area where I've been working to improve the user experience — I'd like to help users self-diagnose these issues as often as possible. New versions of
However, in this case the suggested command does not reproduce the error, and I'm not sure why. I'm going to change it to instead suggest something like my repro above which should work ~100% of the time, since it exactly mirrors what Thanks for trying out |
Resolves #570 by making it more likely that users are able to resolve the build error on their own, instead of being confused about why cargo-semver-checks is failing to build their project.
Here's the error text I'm adding in #676:
I have confirmed this also reproduces the error. It's using |
Steps to reproduce the bug with the above code
The 0.17.3 version of the
boa_icu_provider
crate fails to compile:https://github.com/boa-dev/boa/tree/v0.17.3/boa_icu_provider
So:
cd boa_icu_provider
cargo semver-checks
With the latest
cargo-semver-checks
version in crates.ioBehaviour has also been observed in the CI/CD in Ubuntu Linux:
boa-dev/boa#3173
Actual Behaviour
It gives a bunch of errors, such as:
Expected Behaviour
Compilation works, since
cargo build
,cargo test
andcargo doc
all work fine.Generated System Information
Software version
cargo-semver-checks 0.24.1
Operating system
macOS 14.0 (Darwin 23.0.0)
Command-line
~/.cargo/bin/cargo-semver-checks semver-checks --bugreport
cargo version
Compile time information
Build Configuration
Additional Context
It seems the error only happens with that particular crate in the workspace, and seems that the 0.18.0 (current
semver-checks
branch) works fine.The text was updated successfully, but these errors were encountered: