An open API service indexing awesome lists of open source software.

https://github.com/asdf-community/asdf-zig

Zig plugin for the asdf version manager [maintainer=@jiacai2050]
https://github.com/asdf-community/asdf-zig

asdf asdf-plugin

Last synced: 8 days ago
JSON representation

Zig plugin for the asdf version manager [maintainer=@jiacai2050]

Awesome Lists containing this project

README

          

# asdf-zig [![Build](https://github.com/asdf-community/asdf-zig/actions/workflows/build.yml/badge.svg)](https://github.com/asdf-community/asdf-zig/actions/workflows/build.yml)

[Zig](http://ziglang.org/) plugin for the [asdf version manager](https://asdf-vm.com).

As a bonus, this plugin supports installing zls as well, so zls and zig version can match exactly.

# Dependencies

- `bash`, `python3`, `tar`, and [POSIX utilities](https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html).
- asdf 0.16+

# Install

After installing [asdf](https://asdf-vm.com/guide/getting-started.html), install the plugin by running:

```shell
asdf plugin add zig https://github.com/asdf-community/asdf-zig.git
```

or update an existing installation:

```shell
asdf plugin update zig
```

Then use `asdf-zig` to manage zig:

```shell
# Show all installable versions
asdf list all zig

# Install specific version

asdf install zig 0.15.1

# or install latest tagged version with
asdf install zig latest

# Set a version globally (on your ~/.tool-versions file)
asdf set --home zig latest

# Now zig commands are available
zig version

# You can also check the ZLS version.
# It is designed to be highly compatible with the specific Zig version you installed.
zls version
```

Check [asdf](https://github.com/asdf-vm/asdf) readme for more instructions on how to
install & manage versions.

# License

[Apache License 2.0](LICENSE)