-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorenhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
Extracted from #14265.
This situation needs to be tested and dealt with:
- Dependency Foo depends on Dependency Bar, which runs Bar's build.zig.
- Dependency Bar depends on Dependency Foo, which runs Foo's build.zig.
- Infinite loop occurs.
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.
nektro, matu3ba, lin72h and mochalins
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorenhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Type
Projects
Status
Quality Assurance