-
Notifications
You must be signed in to change notification settings - Fork 961
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
Triage needed: possible semver violation in libp2p-gossipsub
#3506
Comments
It seems that the Bisection shows that this is the commit where the semver violation stops being reported: caed1fe2#diff-368386d6c30a7eb4d60fcddda689bba01e9e215451a387fa58ff93b12fb914de |
libp2p-gossipsub
libp2p-gossipsub
I noticed at https://crates.io/crates/libp2p-gossipsub/versions that v0.44.0 was just released ~16h ago, so I'm guessing that In that case, there's no semver violation here since the baseline ("crates.io 0.44.0") is actually newer than the "current" (the git hash in question). But there is a hazard for a future semver violation that you may not have noticed: the |
Yes we bump the version as part of PRs to ensure we don't forget that there was a breaking change. I do want to change that though, see #2902.
Damn. Sometimes I wish auto-traits wouldn't exist in Rust and you would just have to write |
libp2p-gossipsub
at commit hash3ec7c797
has begun failing semver-checks due to a presumed upstream dependency semver violation. Auto-traits are viral, so the upstream break leaks intolibp2p-gossipsub
's own public API and breaks its semver too:To find the problem, I've added this small snippet of code in
behaviour.rs
that will cause a compilation error with a pretty error message:Compiler error output
I am not currently seeing this problem on the current tip of
master
(1a9cf4f7760724032b729c43165716c7ecd842ad
).To be honest, I'm not exactly sure how that's possible, since the problematic commit only started failing in the last 48h — I know because it's part of the
cargo-semver-checks
integration suite and it wasn't failing 48h ago but failed now: https://github.com/obi1kenobi/cargo-semver-checks/actions/runs/4267893704/jobs/7429959838This is very unusual, and probably worth investigating. I'd love your help!
The text was updated successfully, but these errors were encountered: