Skip to content

ability to register file system input dependencies during the configure phase #20605

@andrewrk

Description

@andrewrk

Extracted from #20580.

One pattern in build.zig scripts is to walk a directory during the configure phase and create steps based on the set of files found, perhaps including the file contents found as well. Since it's only possible to create steps during the configure phase, it means the configure phase must be rerun if any files observed this way are added, removed, or modified.

So, the build system API needs a way for build scripts to declare that they have introduced a logical dependency on a particular file system path.

The file system watch mechanism will then respond to detected changes to these files by exiting the build runner process with a special notification to the parent process that it needs to be rerun for exactly this reason.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions