Skip to content

Conversation

@THErealARETE
Copy link
Contributor

Updated startup-localenv-with-data.sh to handle the format change in .node directory structure:

  • Previously: .node/X.Y.Z-/ (e.g., .node/0.18.0-rc.11/)
  • Now: .node/X.Y.Z/ (e.g., .node/0.18.0/)

Implementation details:

  • Extract base version (X.Y.Z) from NODE_TAG by removing tag suffix
  • Prioritize new format (.node/X.Y.Z/) first
  • Fallback to old format (.node/X.Y.Z-/) for backward compatibility
  • Provide clear error messages if neither format exists

Tested scenarios:

  • NODE_TAG=0.18.0 → Uses .node/0.18.0/ (new format) ✓
  • NODE_TAG=0.18.0-rc.11 → Uses .node/0.18.0/ (new format preferred) ✓
  • Maintains backward compatibility with old format directories

Copy link
Contributor

@mariyade mariyade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 .I tested the script locally and it uses .node/X.Y.Z when it exists and falls back to .node/X.Y.Z- if not.

@mariyade mariyade self-requested a review January 6, 2026 16:51
….Y.Z-<tag> to X.Y.Z

Updated startup-localenv-with-data.sh to handle the format change in .node directory structure:
- Previously: .node/X.Y.Z-<tag>/ (e.g., .node/0.18.0-rc.11/)
- Now: .node/X.Y.Z/ (e.g., .node/0.18.0/)

Implementation details:
- Extract base version (X.Y.Z) from NODE_TAG by removing tag suffix
- Prioritize new format (.node/X.Y.Z/) first
- Fallback to old format (.node/X.Y.Z-<tag>/) for backward compatibility
- Provide clear error messages if neither format exists

Tested scenarios:
- NODE_TAG=0.18.0 → Uses .node/0.18.0/ (new format) ✓
- NODE_TAG=0.18.0-rc.11 → Uses .node/0.18.0/ (new format preferred) ✓
- Maintains backward compatibility with old format directories
@THErealARETE THErealARETE force-pushed the test/update-startup-script-with-data branch from 3b828d9 to 6e7bf7c Compare January 15, 2026 12:46
@THErealARETE THErealARETE merged commit 669f8eb into main Jan 16, 2026
16 checks passed
@THErealARETE THErealARETE deleted the test/update-startup-script-with-data branch January 16, 2026 03:05
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