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

Draft: add .node_version fallback #1974

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

easymikey
Copy link

#1973

implemented a small draft

@easymikey
Copy link
Author

easymikey commented Dec 19, 2024

@chriskrycho what do you think about support .node_version ?

I didn't want to distract you, but it's very interesting. Sorry:)

@easymikey easymikey marked this pull request as draft December 20, 2024 14:22
let project_path = manifest_file.parent()?;

match std::fs::read_to_string(project_path.join(".node_version")) {
Ok(version) => match Version::parse(version) {

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?

Copy link
Author

@easymikey easymikey Jan 10, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants