-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Custom name in [lib]
in Cargo.toml causes cargo-semver-checks to be unable to find rustdoc json
#432
Comments
Thanks for the report, and sorry for the inconvenience! Something quite interesting is going on here, because we've seen this issue before and we've added a test case specifically for it: https://github.com/obi1kenobi/cargo-semver-checks/blob/main/test_rustdoc/renamed_lib/Cargo.toml I'll have a look shortly. |
I think I've gotten to the bottom of the problem and I have a prototype of the fix that should eliminate problems like this once and for all. Thanks to the kind folks who work on rustdoc, I have a way to replace the hit-or-miss heuristic we were using to find the rustdoc JSON file with something much better. The fix will be in the next release at the beginning of next week, together with the massive overall speedup of the tool I wrote about a few months ago: https://predr.ag/blog/speeding-up-rust-semver-checking-by-over-2000x/ If you need it more urgently than that, I can try (though unfortunately not commit to) to make a patch release tomorrow morning as well. Let me know! |
That's awesome! Thank you! No rush on the release. It's not that urgent for me and ultimately I can still make it work for now by manually renaming the files :) |
This was a bit of a marathon issue, but now it's sorted out and the project is better off for it :) Thanks again for the bug report and quality repro! |
Steps to reproduce the bug with the above code
This isn't quite a minimal example but it should be reproducible enough.
Actual Behaviour
cargo-semver-checks
exits with the following error:Expected Behaviour
It should run and check the code as expected.
Generated System Information
Software version
cargo-semver-checks 0.19.0
Operating system
Linux 5.10.0-19-amd64
Command-line
cargo version
Compile time information
Build Configuration
No response
Additional Context
Putting
in
Cargo.toml
causes the emitted json file to be calledperf_event_open_sys.json
instead of theperf_event_open_sys2.json
thatcargo-semver-checks
is expecting.The text was updated successfully, but these errors were encountered: