Mlugg is looking to take his "mirror list" he put together for the setup-zig action and make it reusable for other tools like zigup/anyzig. If/when this happens I'd like to add support for downloading from these mirrors. We discussed that the list of mirrors would likely be a JSON file hosted either on github or possibly ziglang.org. His approach in setup-zig is to shuffle the list try each mirror one-by-one until it works.
I expect zigup/anyzig will want to keep some metadata about the various mirrors and can do so in the appdata directory where we already store some metadata about the system/environment.
Also note it might make sense to provide a "mirror-test" command to check the performance of each mirror and possibly some configuration options. Maybe allow the user to set mirror priorities or possibly add custom mirrors?
Mlugg is looking to take his "mirror list" he put together for the setup-zig action and make it reusable for other tools like zigup/anyzig. If/when this happens I'd like to add support for downloading from these mirrors. We discussed that the list of mirrors would likely be a JSON file hosted either on github or possibly ziglang.org. His approach in setup-zig is to shuffle the list try each mirror one-by-one until it works.
I expect zigup/anyzig will want to keep some metadata about the various mirrors and can do so in the appdata directory where we already store some metadata about the system/environment.
Also note it might make sense to provide a "mirror-test" command to check the performance of each mirror and possibly some configuration options. Maybe allow the user to set mirror priorities or possibly add custom mirrors?