Commit 3b828d9
committed
test: Implementation to handle changed format for .node folder from X.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 directories1 parent 2e9365c commit 3b828d9
1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
59 | 79 | | |
60 | | - | |
| 80 | + | |
61 | 81 | | |
62 | | - | |
| 82 | + | |
63 | 83 | | |
64 | 84 | | |
65 | 85 | | |
| |||
0 commit comments