{"slug": "yet-another-zig-version-manager-but-it-is-context-aware", "title": "Yet another Zig version manager (but it is context aware)", "summary": "Developer Judeadeniji released zvm, a single native binary with no runtime dependencies that resolves the `zig` and `zls` commands to the correct version for the current directory, built with Zig 0.17.0. zvm picks a version in a fixed order: the `ZIG_VERSION` environment variable, a `.zig-version` file in the current or any parent directory (exact version, `master`, or a semver range like `^0.17.0`), the `minimum_zig_version` field in `build.zig.zon`, then the version set by `zvm use`; the parent-directory search stops at the nearest `.git` so a pin in an outer repo does not leak into a nested checkout. The author said an AI coding assistant was used for part of the work, including edge-case audits, unifying exit codes and the install lock, and asked for feedback from macOS, Windows and multi-repo users via `zvm doctor`.", "body_md": "[zvm](https://github.com/Judeadeniji/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.\n\nIt picks a version in this order:\n\n`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`)\nThe parent search stops at the nearest `.git`, so a pin in an outer repo doesn’t leak into a nested checkout.\n\nOther things it does:\n\n`zig`` zvm install 0.17.0 --with-zls`)\nQuick start:\n\n```\ncurl -fsSL https://raw.githubusercontent.com/Judeadeniji/zvm/main/install.sh | sh\nzvm setup\nzvm doctor\n```\n\nBuilt 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.\n\nI’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.", "url": "https://wpnews.pro/news/yet-another-zig-version-manager-but-it-is-context-aware", "canonical_source": "https://ziggit.dev/t/yet-another-zig-version-manager-but-it-is-context-aware/18627#post_1", "published_at": "2026-11-28 21:39:10+00:00", "updated_at": "2026-11-28 21:43:49.922172+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["zvm", "Judeadeniji", "Zig", "zls", "GitHub"], "also_reported_by": [], "takeaway": "zvm resolves the Zig and zls version per directory from ZIG_VERSION, a .zig-version file (exact, master, or a semver range like ^0.17.0), or build.zig.zon's minimum_zig_version, stopping the parent search at the nearest .git.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/yet-another-zig-version-manager-but-it-is-context-aware", "markdown": "https://wpnews.pro/news/yet-another-zig-version-manager-but-it-is-context-aware.md", "text": "https://wpnews.pro/news/yet-another-zig-version-manager-but-it-is-context-aware.txt", "jsonld": "https://wpnews.pro/news/yet-another-zig-version-manager-but-it-is-context-aware.jsonld"}}