-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat: version compat checking in build #1791
base: dev
Are you sure you want to change the base?
Conversation
SP1 Performance Test Results Branch: n/version-check
|
da9a84d
to
704d689
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://crates.io/crates/cargo-lock
Is there a reason we're parsing the cargo.lock by hand instead of using this crate?
4c7f6c9
to
4a26afb
Compare
d45a6a3
to
b636df5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just a small grammar thing
crates/build/src/build.rs
Outdated
return Ok(()); | ||
} | ||
|
||
// This might be a workspace, so we need optionally search parent dirs for lock files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: need to optionally search parent dirs for lock files.
04428f3
to
0094df9
Compare
0094df9
to
0f29948
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some more spelling nits
/// - If the locked version of `sp1-sdk` is incompatible with the current toolchain version. | ||
/// - | ||
/// | ||
/// # Panics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: cant -> can't
return Ok(()); | ||
} | ||
|
||
// This might be a workspace, need to optionally search parent dirs for lock files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit punc
lock_file.packages.iter().find(|p| p.name.as_str() == "sp1-sdk").map(|p| &p.version); | ||
|
||
// Print these just to be useful. | ||
// Most people will install the actual rust toolchain along with thier cargo-prove, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
lock_file.packages.iter().find(|p| p.name.as_str() == "sp1-sdk").map(|p| &p.version); | ||
|
||
// Print these just to be useful. | ||
// Most people will install the actual rust toolchain along with thier cargo-prove, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos:
// Most people will install the actual rust toolchain along with thier cargo-prove, | |
// Most people will install the actual rust toolchain along with their cargo-prove, |
Version checking the
sp1-zkvm
crate with the current toolchain to ensure compatibly.Assumes that major/minor of
sp1-zkvm
andsp1-build
matching implies compat, which would be inline ifsp1-zkvm
inherits workspace version in the futureedit: closes #1625