Skip to content
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

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

Cammisuli
Copy link
Member

@Cammisuli Cammisuli commented Oct 19, 2023

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 #

@vercel
Copy link

vercel bot commented Oct 19, 2023

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 19, 2023 1:46pm

@Cammisuli Cammisuli force-pushed the update_post_install_script branch 2 times, most recently from f1619a7 to 5e82023 Compare October 19, 2023 13:33
Comment on lines 26 to 30
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`'
);
Copy link
Member

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

@Cammisuli Cammisuli force-pushed the update_post_install_script branch from 5e82023 to f8573e3 Compare October 19, 2023 13:45
@Cammisuli Cammisuli requested a review from AgentEnder October 19, 2023 13:46
@Cammisuli Cammisuli merged commit 93e1e1b into nrwl:master Oct 19, 2023
2 checks passed
@Cammisuli Cammisuli deleted the update_post_install_script branch October 19, 2023 14:01
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants