Closed LordMZTE closed 1 year ago
The error only occurs when the both versions of Getty (the one depended on by the project and the one depended on by getty-json
) are the same. If the versions are different, the error does not occur.
The underlying issue is in the package manager, not Getty (context). Specifically, the package manager does not yet deduplicate packages properly, hence why the compiler sees two different Getty modules even though they're the same.
There are ways to work around this, as is pointed out in the linked Discord thread, but it involves replacing the package manager logic that exists in both packages, and I don't feel that it is worth it. For now, projects that depend on both modules will just have to live with using mismatched versions until the issue is fixed in the package manager.
Description
When a module depends on both
getty
andgetty-json
, it will fail to build.How to Reproduce the Bug
Create a
build.zig.zon
with this content:Try building the project it
Additional Context
This is the error message produced: