1
0
Fork
You've already forked allzig
0
Automatic zig version manager
  • Zig 100%
2026年06月19日 10:07:43 +02:00
src fix(version resolution): with a build.zig, do proper minimum version selection 2026年06月19日 10:07:43 +02:00
.gitignore initial commit 2026年04月20日 14:58:57 +02:00
build.zig initial commit 2026年04月20日 14:58:57 +02:00
build.zig.zon initial commit 2026年04月20日 14:58:57 +02:00
LICENSE initial commit 2026年04月20日 14:58:57 +02:00
README.md initial commit 2026年04月20日 14:58:57 +02:00

AllZig

Automatic zig version manager

Warning

While this project is mostly feature complete, it is not well tested and probably full of bugs

Installation

Requires zig 0.16.x

Ensure that AllZig will be the first zig on your $PATH by putting $HOME/.local/bin/zig is on your $PATH before wherever you put the zig binary used to compile this project.

zig build -Doptimize=ReleaseSafe
cp zig-out/bin/allzig "$HOME/.local/bin/zig"
zig meta help 

On the first run, AllZig will automatically install its configuration to $XDG_CONFIG_HOME and set up a compilers directory in $XDG_DATA_HOME

Usage

  • When used like a regular zig executable, allzig will select the minimal installed version that satisfies the minimum_zig_version in build.zig.zon, or the latest installed version if that field is not present

  • You can specify an explicit version to use with zig <version> [zig_args...]. AllZig will download it if it is not already installed. A version specifier of master can be used to select the latest installed version.

  • Use zig meta <subcommand> to manually manage compiler versins. See zig meta help for details

Dependencies

  • minizign to check tarball signatures
  • clap as a transitive dependency of minizign until it is made lazy upstream since it is not used here