Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Add partial version resolution to the install command
  • Users can now specify major-only or major.minor versions

Examples

  • dtvem install node 22 resolves to latest 22.x.x (e.g., 22.15.0)
  • dtvem install python 3.12 resolves to latest 3.12.x (e.g., 3.12.1)
  • dtvem install node 22.0.0 still works as exact version

Changes

  • New src/internal/version/ package with version matching logic
  • Updated src/cmd/install.go to resolve partial versions before installation
  • Added comprehensive unit tests
  • Added e2e integration tests for all runtimes

Test plan

Closes #188

Enable install command to resolve partial version specifications:
- Major-only: dtvem install node 22 -> installs latest 22.x.x
- Major.minor: dtvem install python 3.12 -> installs latest 3.12.x

Closes #188
@CalvinAllen
Copy link
Contributor Author

/release-note dtvem now has support for installing runtimes using partial version match! dtvem install node 24 - latest minor and revision for the 24 line. dtvem install ruby 3.1 - latest revision for the 3.1 line. Try it out today!

@CalvinAllen CalvinAllen merged commit cf3e9a6 into main Jan 8, 2026
35 of 39 checks passed
@CalvinAllen CalvinAllen deleted the feat/install/partial-version-support branch January 8, 2026 16:28
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.

[Feature]: Install should support partial version numbers and find latest

2 participants