Skip to content

Skip index.tab fetch for exact versions - #22

Merged
coreybutler merged 1 commit into
mainfrom
fix/exact-version-skip-catalog
Oct 27, 2026
Merged

coreybutler merged 1 commit into
mainfrom
fix/exact-version-skip-catalog

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

What

  • Skip the Node.js index.tab catalog fetch when the requested version is already exact x.y.z.

Why

Air-gapped nvm install 24.22.1 with local_install_only failed on DNS to nodejs.org before the local archive was considered. Exact versions do not need the catalog.

Testing

  • TestFindExactVersionSkipsCatalog (24.22.1, v24.22.1, prerelease prefix)
  • CLI coverage in nvm-windows/cli: exact local-only install does not hit the catalog server

Risk

Low. Partial specs and lts/latest still use the catalog. Invalid exact versions fail at download/extract instead of catalog miss.

Air-gapped nvm install of a concrete x.y.z fetched nodejs.org/dist/index.tab before using a local archive.

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
@coreybutler
coreybutler merged commit 466bfea into main Oct 27, 2026
2 checks passed
@coreybutler
coreybutler deleted the fix/exact-version-skip-catalog branch October 27, 2026 15:32
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.

1 participant