Skip to content

fix(global,local): validate version is installed before setting#118

Merged
CalvinAllen merged 1 commit intomainfrom
fix/111-validate-version-exists
Dec 12, 2025
Merged

fix(global,local): validate version is installed before setting#118
CalvinAllen merged 1 commit intomainfrom
fix/111-validate-version-exists

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Validates that the specified version is installed before setting it as global or local version
  • Shows helpful error messages with suggestions when validation fails:
    ✗ Python 3.47 is not installed
    → Run 'dtvem list python' to see installed versions
    → Run 'dtvem install python 3.47' to install it first
    
  • Adds tests for version validation

Test plan

  • Verified lint passes locally with npm run check
  • All tests pass (236 tests)
  • Manual testing: dtvem global python 3.47 now shows error instead of succeeding

Fixes #111

Add validation to ensure the specified version exists before setting it
as the global or local version. Shows helpful error messages with
suggestions when validation fails.

Also includes goconst fix for path_windows.go (required for lint to pass).

Fixes #111
@CalvinAllen CalvinAllen force-pushed the fix/111-validate-version-exists branch from 4caacad to c684388 Compare December 12, 2025 21:19
@CalvinAllen CalvinAllen merged commit f123331 into main Dec 12, 2025
12 checks passed
@CalvinAllen CalvinAllen deleted the fix/111-validate-version-exists branch December 12, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Validate version exists when setting global/local version

1 participant