| src | fix(version resolution): with a build.zig, do proper minimum version selection | |
| .gitignore | initial commit | |
| build.zig | initial commit | |
| build.zig.zon | initial commit | |
| LICENSE | initial commit | |
| README.md | initial commit | |
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_versioninbuild.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 ofmastercan be used to select the latest installed version. -
Use
zig meta <subcommand>to manually manage compiler versins. Seezig meta helpfor details
Dependencies
minizignto check tarball signaturesclapas a transitive dependency ofminizignuntil it is made lazy upstream since it is not used here