-
Notifications
You must be signed in to change notification settings - Fork 259
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
Draft: add .node_version fallback #1974
base: main
Are you sure you want to change the base?
Conversation
@chriskrycho what do you think about support I didn't want to distract you, but it's very interesting. Sorry:) |
let project_path = manifest_file.parent()?; | ||
|
||
match std::fs::read_to_string(project_path.join(".node_version")) { | ||
Ok(version) => match Version::parse(version) { |
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.
How Version::parse
resolves ranges?
22 > 22.0.0
?
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.
There will be a error in the current draft. It won't be difficult to add the latest available version.
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.
@easymikey What needs to be done for this to be merged?
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.
I can implement this logic on Monday, if needed quickly. But do you know if mentainers can merge it?
Please make this happen! 🎈 |
#1973
implemented a small draft