-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore(repo): update post install script to manually check for rust version less than 1.70 #19739
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
f1619a7
to
5e82023
Compare
scripts/preinstall.js
Outdated
const [major, minor, patch] = rustVersion.toString().split(' ')[1].split('.'); | ||
if (+major < 1 || (+major === 1 && +minor < 70)) { | ||
console.log(`Found ${rustVersion}`); | ||
console.error( | ||
'Please make sure that your installed Rust version is greater than v1.70. You can update your installed Rust version with `rustup update`' | ||
); |
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 we use the semver utility to check if the version is high enough? This isn't a super important area of the codebase but it'd be cleaner
…rsion less than 1.70
5e82023
to
f8573e3
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Current repo rust code is using features that were stabilized in 1.70, and causes errors when the installed rust version is less than 1.70
Expected Behavior
Checks are done to make sure that people are using the proper version of rust
Related Issue(s)
Fixes #