handle the case of build.zig dependency loops #14287
Labels
bug
Observed behavior contradicts documented or intended behavior
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Extracted from #14265.
This situation needs to be tested and dealt with:
This would not be an issue when depending on zig packages without executing build.zig logic (#14282).
Marking as "bug" because I'm pretty sure this will be an infinite loop, when instead it should be a nice error message.
The user is supposed to avoid this problem by putting their call to
dependency()
inside an if statement to break the loop.The text was updated successfully, but these errors were encountered: