Skip to content

ZKVM-1310: semver-checks: Implement checking of crate dependency version requirements #3074

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bobbobbio
Copy link
Contributor

We had an issue where we ended up breaking the 1.2.X build of the risc0 crates when we published 1.4.X versions of crates as part of the 2.0.0 release. This was because the 1.4.X crates ended up depending on 2.0.X versions of crates (risc0-core and risc0-zkp at a minimum) which conflicted with dependencies in other 1.2.X crates. This caused cargo to include both versions. This can be okay, but in this case it causes issues where the types are incompatible (because there are two different versions of these crates).

This adds a check to semver-checks that sees if a crate has a workspace dependency version requirement increase in major version, and if it does, we require that crate to also bump its major version. In the above situation it should have forced the 1.4.X crates to bump their versions to 2.0.X.

This just makes it easier to fix multiple issues at once.

Also improve the error reporting here.
Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Apr 4, 2025 10:32pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
reports-and-benchmarks ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 10:32pm

@github-actions github-actions bot changed the title semver-checks: Implement checking of crate dependency version requirements ZKVM-1310: semver-checks: Implement checking of crate dependency version requirements Apr 4, 2025
@bobbobbio bobbobbio marked this pull request as ready for review April 4, 2025 22:56
@bobbobbio bobbobbio requested a review from a team as a code owner April 4, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant