zvm is a single native binary with no runtime dependencies that makes zig (and zls) resolve to the right version for whatever directory you’re in.
It picks a version in this order:
ZIG_VERSION env var.zig-version in the current or any parent directory (exact version, master, or a semver range like ^0.17.0) minimum_zig_version from build.zig.zon`` zvm use)
The parent search stops at the nearest .git, so a pin in an outer repo doesn’t leak into a nested checkout.
Other things it does:
zig`` zvm install 0.17.0 --with-zls)
Quick start:
curl -fsSL https://raw.githubusercontent.com/Judeadeniji/zvm/main/install.sh | sh
zvm setup
zvm doctor
Built with Zig 0.17.0. I used an AI coding assistant for part of this (edge-case audits, unifying exit codes, the install lock), and everything was reviewed and tested by me.
I’d especially like feedback from people on macOS, Windows, or with multi-repo setups. Run zvm doctor and tell me what works or breaks. Issues and PRs are welcome on GitHub.