forked from knightpp/anyzls
Automatically downloads compatible zls version for your Zig!
- Zig 100%
| src | Print error when API fails | |
| .gitignore | Update to Zig 0.16 | |
| build.zig | Init | |
| build.zig.zon | Update to Zig 0.16 | |
| LICENSE | Relicense | |
| readme.md | Add how it works section | |
anyzls
This tool is intended to automatically download required zls version for certain Zig version.
Inspired by https://github.com/marler8997/anyzig.
How to use
Compile and add output executable to path, for example:
zig build --release=safe
cp ./zig-out/bin/zls ~/.local/bin/zls
Now, whenever IDE execute zls executable, it should get this "wrapper" zls. Which checks current
Zig version then finds compatible zls version using HTTP API and finally installs it.
How it works
- Get current zig version by running
zig version - Send HTTP request to
releases.zigtools.org/v1/zls/select-version - Download tarball and signature
- Check signature
- Unpack tarball into cache
- Run
zlsfrom cache
License
Licensed under the EUPL-1.2 or later.
You may obtain a copy of the licence at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.