ziglang / vscode-zig

Zig language support for VSCode
https://marketplace.visualstudio.com/items?itemName=ziglang.vscode-zig
MIT License
551 stars 60 forks source link

Use mirrors for downloading Zig (and ZLS?) tarballs #238

Open Vexu opened 1 month ago

Vexu commented 1 month ago

Similar to https://github.com/mlugg/setup-zig this extension should also support using mirrors for downloading Zig tarballs.

I'd prefer updating the mirror list to not require updating the extension.

Techatrix commented 1 month ago

It shouldn't be too difficult to implement this on top of #230. I anticipated that mirrors could be added to this extension so I tried to plan ahead by adding minisign verification as an example.

I'd prefer updating the mirror list to not require updating the extension.

Does this mean that the mirror list is supposed to be configurable by the user?

Vexu commented 1 month ago

It shouldn't be too difficult to implement this on top of #230. I anticipated that mirrors could be added to this extension so I tried to plan ahead by adding minisign verification as an example.

I suspected that to be the case, good to get confirmation.

I'd prefer updating the mirror list to not require updating the extension.

Does this mean that the mirror list is supposed to be configurable by the user?

It doesn't have to be but that does seems like something someone could want. I was thinking there could be a mirror list hosted somewhere (maybe ziglang.org/download/mirrors.json) that the extension could check regularly.