build system fmt step with check=false does not acquire a write lock on source files #35204

Open
opened 2026-05-04 23:38:02 +02:00 by andrewrk · 0 comments
Owner

surfacing this TODO to the issue tracker:

    // TODO: if check=false, this means we are modifying source files in place, which
    // is an operation that could race against other operations also modifying source files
    // in place. In this case, this step should obtain a write lock while making those
    // modifications.

lib/std/Build/Step/Fmt.zig line 42

UpdateSourceFiles probably needs to use the same mechanism.

surfacing this TODO to the issue tracker: ```zig // TODO: if check=false, this means we are modifying source files in place, which // is an operation that could race against other operations also modifying source files // in place. In this case, this step should obtain a write lock while making those // modifications. ``` lib/std/Build/Step/Fmt.zig line 42 UpdateSourceFiles probably needs to use the same mechanism.
andrewrk added this to the 0.17.0 milestone 2026-05-04 23:38:02 +02:00
andrewrk modified the milestone from 0.17.0 to Urgent 2026-05-26 18:35:32 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglang/zig#35204
No description provided.