zls icon indicating copy to clipboard operation
zls copied to clipboard

`0.14.0` tag broken when building with Nix

Open mookums opened this issue 9 months ago • 1 comments

Zig Version

0.14.0

ZLS Version

7485feeeda45d1ad09422ae83af73307ab9e6c9e

Client / Code Editor / Extensions

N/A

Steps to Reproduce and Observed Behavior

Attempting to run nix develop or import ZLS in a Nix Flake results in a failure to pull due to the pinned version of zig-overlay pointing to a URL that is no longer used for pulling Zig archives.

It's an easy fix, just running nix flake update and updating that reference (flake.nix, line 23) to master to be "0.14.0".

Expected Behavior

Should build fine.

Relevant log output

error: builder for '/nix/store/ldvj9pav9hgmg5kbq1wrh23r2cn5bp6v-zig-linux-x86_64-0.14.0.tar.xz.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://ziglang.org/builds/zig-linux-x86_64-0.14.0.tar.xz
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download zig-linux-x86_64-0.14.0.tar.xz from any mirror
       For full logs, run 'nix log /nix/store/ldvj9pav9hgmg5kbq1wrh23r2cn5bp6v-zig-linux-x86_64-0.14.0.tar.xz.drv'.
error: 1 dependencies of derivation '/nix/store/0ipsycrvjidy1z02z6n1z432q8h4kni7-zig-0.14.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jwa2fb5npl5qy58wam5xi7lv6g9y7gqm-zls-env.drv' failed to build

mookums avatar Apr 16 '25 23:04 mookums

I just bumped into it as well. I don't know if you already resolved it yourself or used something else like zigscient, but in case anyone else stumbles upon this, i forked and fixed it (just ran nix flake update and changed the zig binary from master to 0.14) https://github.com/nihklas/zls/releases/tag/0.14.0

nihklas avatar May 07 '25 18:05 nihklas