Skip to content

fix(config): reject blank root before NVM4313 - #20

Merged
coreybutler merged 1 commit into
mainfrom
fix/empty-root-message
Oct 25, 2026
Merged

coreybutler merged 1 commit into
mainfrom
fix/empty-root-message

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

Summary

  • nvm config set root= was classified as NVM4313 because processRoot asked the install-root deny list before the empty-path check.
  • Blank or whitespace-only root now returns root must be a non-empty path and skips Put. Unsafe folders still use NVM4313.

Test plan

  • go test ./config in common
  • CLI TestSet_RunRejectsInvalidRoot against this common

Whitespace-only root is missing input, not an unsafe folder.
processRoot must fail with the empty-path message before the
install-root deny list so nvm config set matches Validate.

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
@coreybutler
coreybutler merged commit d649907 into main Oct 25, 2026
2 checks passed
@coreybutler
coreybutler deleted the fix/empty-root-message branch October 25, 2026 15:14
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