module paths can resolve incorrectly #15767
Labels
bug
Observed behavior contradicts documented or intended behavior
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Zig Version
0.11.0-dev.3132+465272921
Steps to Reproduce and Observed Behavior
This bug already has a PR at #15717, just adding an issue for it as well.
To reproduce, create a zig project with another zig project in a subdirectory:
Now the
outer
project looks like this:Now open
inner/build.zig
and make these changes so it points to the outer project:Finally, in
outer
, run this:You will see:
No bueno!
Expected Behavior
It should print wicked cool centaur ANSI art with an inspirational quote. Just kidding. Compilation should succeed because the path in
inner/build.zig
is../src/main.zig
, so it should resolve tosrc/main.zig
, not toinner/src/main.zig
.The text was updated successfully, but these errors were encountered: