[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:
8 files changed
+917
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user