Zig Version
0.16.0
Steps to Reproduce and Observed Behavior
If I have this local module path (three modules app/foo, lib/bar, and lib/baz):
./app
./app/foo
./app/foo/build.zig.zon
./app/foo/build.zig
./app/foo/src
./app/foo/src/main.zig
./lib/bar
./lib/bar/build.zig.zon
./lib/bar/build.zig
./lib/bar/src
./lib/bar/src/main.zig
./lib/baz
./lib/baz/build.zig.zon
./lib/baz/build.zig
./lib/baz/src
./lib/baz/src/main.zig
and app/foo depends on lib/baz via
.dependencies=.{.baz=.{.path="../../lib/baz"},},and lib/bar depends on both app/foo and lib/baz via
.dependencies=.{.foo=.{.path="../../app/foo"},.baz=.{.path="../baz"},},and lib/baz has no dependencies...
.dependencies=.{},then I get a dependency issue building lib/bar
⏺ lib/bar % zig build
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: error: file exists in modules 'root.@dependencies.../../lib/baz' and 'root.@dependencies.../baz'
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: note: files must belong to only one module
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: note: file is the root of module 'root.@dependencies.../../lib/baz'
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: note: file is the root of module 'root.@dependencies.../baz'
I realize this is because the strings ../../lib/baz is not the same as ../baz but they are the same on the file system.
Expected Behavior
I would hope this tree compiles properly.
### Zig Version
0.16.0
### Steps to Reproduce and Observed Behavior
If I have this local module path (three modules ``app/foo``, ``lib/bar``, and ``lib/baz``):
```
./app
./app/foo
./app/foo/build.zig.zon
./app/foo/build.zig
./app/foo/src
./app/foo/src/main.zig
./lib/bar
./lib/bar/build.zig.zon
./lib/bar/build.zig
./lib/bar/src
./lib/bar/src/main.zig
./lib/baz
./lib/baz/build.zig.zon
./lib/baz/build.zig
./lib/baz/src
./lib/baz/src/main.zig
```
and ``app/foo`` depends on ``lib/baz`` via
```zig
.dependencies = .{
.baz = .{ .path = "../../lib/baz" },
},
```
and ``lib/bar`` depends on both ``app/foo`` and ``lib/baz`` via
```zig
.dependencies = .{
.foo = .{ .path = "../../app/foo" },
.baz = .{ .path = "../baz" },
},
```
and ``lib/baz`` has no dependencies...
```zig
.dependencies = .{},
```
then I get a dependency issue building ``lib/bar``
```
⏺ lib/bar % zig build
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: error: file exists in modules 'root.@dependencies.../../lib/baz' and 'root.@dependencies.../baz'
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: note: files must belong to only one module
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: note: file is the root of module 'root.@dependencies.../../lib/baz'
.zig-cache/o/76835960cf8005720ef4e29caf0e71c0/dependencies.zig:1:1: note: file is the root of module 'root.@dependencies.../baz'
```
I realize this is because the strings ``../../lib/baz`` is not the same as ``../baz`` but they *are* the same on the file system.
### Expected Behavior
I would hope this tree compiles properly.