-
Notifications
You must be signed in to change notification settings - Fork 331
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?
pub(crate) fn build_program_internal(path: &str, args: Option<BuildArgs>) { | ||
// Get the root package name and metadata. | ||
let program_dir = std::path::Path::new(path); | ||
verify_locked_version(program_dir).expect("locked version mismatch"); |
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.
Can you make this error message more descriptive? As someone reading this error message, I don't understand what is mismatched between 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.
So with the expect also displaying the inner error msg I think its sufficent wdyt
ex: locked version mismatch: Locked version of sp1-sdk is incompatible with the current toolchain version
or itll say zkvm depending on the mismatch
4c7f6c9
to
4a26afb
Compare
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