[New] record every node version's LTS status

Each download of node's `index.tab` now merges every version's LTS codename, or `-`, into `$NVM_DIR/.lts-status`,
keeping versions that download doesn't list,
so the status of an installed version is known, and refreshed on every remote connection.
Only an index that includes LTS versions can start the record, so a nightly or release candidate mirror can't,
and `nvm_ensure_lts_status` downloads it once for versions installed before it was recorded.
`update_test_mocks.sh` writes the record of its `index.tab` mock to `nodejs.org-dist-lts-status.txt`.
This commit is contained in:
Jordan Harband committed 2026-10-21 12:52:04 -07:00
1 parent 4007c0d062
commit e5f1288b40
8 files changed
+917

No files matched your search

+3
View File
@@ -9,6 +9,9 @@ cleanup() {
: nvm.sh
\. ../../../nvm.sh
# these mocks must not be recorded as the LTS status of $NVM_DIR's versions
nvm_record_lts_status() { :; }
MOCKS_DIR="$PWD/mocks"
# sample output at the time the test was written