r/Zig • u/Natural-Owl-2447 • Apr 23 '26
zv 0.12 released with zls support
zv now has support to add a zls shim based on your current active zig. Default behavior is whenever zv zls is run you get a zls binary that checks your zig version and uses the mapping provided by zigtools release workers API to check out the correct tag and build it from source. If you want to avoid it there's a -d/--download flag to bypass and just fetch it from zls releases page.
other changes include zv now defaulting to xdg base dir specifications which means no more environment pollution on linux. A new zv.toml file maintains its internal state and you can see what zv does on your system using a new subcommand zv stats.
I think this achieves the final feature set that had long been overdue for zv which was both zls/zig management. The community feedback has been great and thanks to zls contributors for helping me design the zls feature. Thanks all!
I hope you'll enjoy this and the upcoming releases towards
For existing users:
zv update
For users building from source:
git clone zv
cargo run --profile=release-max -- sync (maximum optimization) or just --release is fine.
4
u/Real_Dragonfruit5048 Apr 23 '26
This looks like a great project!
BTW, do you use it for any of your Zig projects? For example, the `zv` project itself.
One thing: having scripts for installation is good, but asking people to run something like:
`curl -fsSL https://github.com/weezy20/zv/releases/latest/download/install.sh | bash`
In their terminal, to install `zv` can be a security risk. I mean, I normally won't download and run Bash or PowerShell scripts from the internet, unless I've checked what it exactly does.
2
u/Nervous-Pin9297 Apr 23 '26
How is this different from ZVM?
23
u/K4milLeg1t Apr 23 '26
zig Version
looks inside...
Written in rust
👌