marler8997 / zigup

Download and manage zig compilers.
MIT No Attribution
793 stars 61 forks source link

Add support for nightly builds compiler versions #55

Closed guidorice closed 2 years ago

guidorice commented 2 years ago

I was trying to zigup install a compatible version of zig to use with zls, on 0.10-dev, and couldn't get it to work. A specific nightly build was what I needed.

I was able to get it working by adding a fallback url (so if the download version fails, a nightly version is attempted next). Let me know if any changes or improvements... I am new to zig.

Also, thanks for making zigup!

marler8997 commented 2 years ago

I'm not sure if I never saw this or if I saw it and forgot about it, but I just pushed a fix for this here: https://github.com/marler8997/zigup/commit/fc7f561642b71a191882785e311b16c5ae7b5f67#diff-ca15b1498407db59c7f802c6740396e31869691ea6064f95deaee9979625f25fR883