Skip to content

v0.8.4

Latest

Choose a tag to compare

@moqsien moqsien released this 14 Nov 01:50

Feature release on top of v0.8.3: vmr migrate turns asdf, vfox or system installs into freeze files, and the cd hook now fires on z/zi jumps and makes cd - work inside lock sessions.

Features

  • vmr migrate (#280): --asdf, --vfox and --system write migration_from_asdf.txt, migration_from_vfox.txt and migration_from_system.txt, each replayed with vmr use -f <file>. The command is read-only: nothing is installed, activated, or written under the other manager's directories, and the flags can be combined in one run.
    • asdf: reads $ASDF_DATA_DIR (default ~/.asdf) installs and the global pins in ~/.tool-versions; ref: builds and interrupted installs are skipped and reported.
    • vfox: reads $VFOX_HOME or the user directory (~/.version-fox, else ~/.vfox), honoring storage.sdkPath and [tools] in the global .vfox.toml.
    • system: probes common SDK commands on PATH with their version flags, skipping binaries owned by vmr, asdf, vfox, nvm, fnm, volta, pyenv, rbenv, sdkman, mise or conda.
    • Name mapping (nodejs → node, golang → go, postgres → postgresql, java → jdk, dotnet-core → dotnet) is built in, and an optional MAP file (<source> <vmr-sdk> per line) replaces it. Samples generated from the plugin bundle live in vmr/docs/migration_map/.
    • The globally active version is written last per SDK, so a sequential vmr use -f finishes on it.
  • The cd hook runs on zoxide jumps (#279): bash PROMPT_COMMAND, zsh chpwd and the PowerShell prompt watcher re-run the hook, so z/zi into a .vmr.lock project activates its pinned versions; VMR_CDHOOK_LAST_PWD dedupes against the cd alias.
  • cd - works inside lock sessions (#279): the previous directory is seeded through VMR_SESSION_OLDPWD, and the PowerShell cdhook delegates to Set-Location, so -, ~ and provider paths keep working.

Internal changes

  • Shell state variables were renamed to say what they hold: VMR_CD_INIT → VMR_CDHOOK_ACTIVE, VMR_CD_CACHE → VMR_LOCKFILE_DIR (backed by cd_hook.lockfile_dir). Run vmr cdhook once after upgrading to refresh the shell integration; the stale legacy state file is removed automatically.

Verification

  • cargo check --workspace --all-targets --locked clean
  • cargo test --workspace --lib passed
  • release build reports vmr 0.8.4(dev)

Full diff: v0.8.3...v0.8.4