Skip to content

feat: support Zig mirrors#543

Merged
aherrmann merged 4 commits intoaherrmann:mainfrom
cerisier:mirrors
Sep 28, 2025
Merged

feat: support Zig mirrors#543
aherrmann merged 4 commits intoaherrmann:mainfrom
cerisier:mirrors

Conversation

@cerisier
Copy link
Contributor

It is encouraged by the Zig documentation to use mirrors to download the Zig toolchain since they moved to self hosting.

See https://ziglang.org/news/migrate-to-self-hosting/
See https://ziglang.org/download/community-mirrors/

This PR adds the ability to the zig extension.

Copy link
Owner

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that's great!
Would it be possible to add an integration test for this feature?

@cerisier
Copy link
Contributor Author

Done !

By emitting and parsing the build event stream from Bazel and forcing a
fetch by disabling the repository cache and remote asset API.
Copy link
Owner

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good!

I've changed it to make the urls attribute mandatory, mirrors don't really make sense without.
And I've expanded the integration test. Before it didn't actually fail if the mirrors feature was broken.

@aherrmann aherrmann enabled auto-merge September 28, 2025 13:54
@aherrmann aherrmann merged commit 25c8801 into aherrmann:main Sep 28, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants