Skip to content

std.Build: do not override properties of a package like named modules - #24879

Closed
Techatrix wants to merge 1 commit into
ziglang:masterfrom
Techatrix:prevent-module-override
Closed

std.Build: do not override properties of a package like named modules#24879
Techatrix wants to merge 1 commit into
ziglang:masterfrom
Techatrix:prevent-module-override

Conversation

@Techatrix

@Techatrix Techatrix commented Aug 16, 2025

Copy link
Copy Markdown
Contributor

The addModule function could override the module that is visible to dependants which is most likely unintentional. Instead it should assert that no existing module has been added with the given name.

The same issue applies to addNamedWriteFiles and addNamedLazyPath.

The `addModule` function could override the module that is visible to
dependants which most likely unintentional. Instead should asserts that
no existing module has been added with the given name.

The same issue applies to `addNamedWriteFiles` and `addNamedLazyPath`.
@alexrp

alexrp commented Apr 25, 2026

Copy link
Copy Markdown
Member

This will have to be resubmitted on Codeberg once https://codeberg.org/ziglang/zig/issues/31691 is done. (We currently have a moratorium on std.Build changes due to Andrew's ongoing work in this area.)

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