Skip to content

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.

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?

Copy link
Author

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?

@andreassjoberg

@andreassjoberg
Copy link

Please make this happen! 🎈

@rwjblue
Copy link
Contributor

rwjblue commented Mar 3, 2025

@easymikey thanks for working on this!!

I think we might need to do an RFC for this, just to make sure we nail the interop details (and error cases). I don't think that needs to be a super long and drawn out process (not sure how @charlespierce, @chriskrycho, &c feel but this feels both important and straight forward).

I think a great place to start would be taking the prose from https://github.com/volta-cli/rfcs/blob/main/text/0010-node-version-resolution.md and working to update it to allow .node-version fallback.

@andreassjoberg
Copy link

@rwjblue Thank you for your reply!

I created a draft for an RFC: volta-cli/rfcs#54

Just let me know if there's anything else I can do to help this move forward.

@andreassjoberg
Copy link

Opened PR: #2007

@easymikey
Copy link
Author

@andreassjoberg respects. Unfortunately, I was never able to get the implementation. Thanks for thinking of idea and for implementing it🙂

@easymikey easymikey closed this Apr 11, 2025
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.

4 participants