Skip to content

fix(use): alpha --local stays alpha-only - #35

Merged
coreybutler merged 1 commit into
mainfrom
fix/partial-prefer-stable
Nov 16, 2026
Merged

coreybutler merged 1 commit into
mainfrom
fix/partial-prefer-stable

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

What

nvm use alpha --local resolves via LatestInstalledAlpha (alpha tags only). Relies on nvm-windows/common#38 for partial prefer-stable (nvm use 27 prefers GA over newer alpha).

Why

alpha must never activate GA/rc; partial majors must prefer any stable over any prerelease.

Testing

common resolver unit tests (prefer-stable + LatestInstalledAlpha). Manual: install GA + newer alpha under 27, nvm use 27 / nvm use alpha.

Risk

Low. --local alpha path only in this PR; prefer-stable is in common.

Wire nvm use alpha --local to alpha-only installed tags so it never
selects GA/rc. Partial prefer-stable lives in common (061811e).

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
@coreybutler
coreybutler merged commit ec13901 into main Nov 16, 2026
5 of 6 checks passed
coreybutler added a commit to nvm-windows/nvm that referenced this pull request Nov 16, 2026
Pulls nvm-windows/common#38 and nvm-windows/cli#35 so partial majors prefer GA over prerelease and alpha stays alpha-only.

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
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