Zig plugin for asdf version manager
First install asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
cat <<'EOF' >> $HOME/.bashrc
source "$HOME/.asdf/asdf.sh"
source "$HOME/.asdf/completions/asdf.bash"
EOF
Then install asdf-zig
asdf plugin add zig https://github.com/zigcc/asdf-zig.git
# Update to latest if already installed
asdf plugin update zig
Then install latest Zig
asdf install zig latest
asdf global zig latest
zig version
Check asdf readme for instructions on how to install & manage versions.
As suggested in Migrating from AWS to Self-Hosting , asdf-zig will first try download from mirrors.
Currently there are(same with setup-zig):
- https://pkg.machengine.org/zig
- https://zigmirror.hryx.net/zig
- https://zig.linus.dev/zig
- https://fs.liujiacai.net/zigbuilds
You can also configure where to download index.json
with ASDF_ZIG_INDEX_URL
env var, it's https://ziglang.org/download/index.json by default. Availables:
Licensed under the Apache License, Version 2.0.