-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
b.anonymousDependency
: no dependency named X in build.zig.zon
#17185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a fundamental problem with I think this is a strong argument of supporting something like #14603 for file-based dependencies, and maybe even removing |
Thanks, that's some great context. Commented with my thoughts on the PR, hopefully it's useful and not adding too much noise. In the meantime, are there any workarounds for this? I'd like to leverage the package manager dependency import with a local Zig project that has its own set of dependencies. I tired declaring those downstream dependencies in a root-level EDIT: Found 2 workarounds for now. The first is to change downstream |
|
Yes, thanks! Forgot about this issue. I've been using relative paths in |
Uh oh!
There was an error while loading. Please reload this page.
Zig Version
0.12.0-dev.396+55f0d8b41
Steps to Reproduce and Observed Behavior
(Running on Windows 10)
Originally described the issue in #16354 (comment), but I'm opening a new issue since it seems to be a bit different and not addressed by those fixes.
To reproduce:
anonymous_dependency
branch of myzig-bugreport
repositoryzig build
I get the following error, even though
deps/common/build.zig.zon
does declare azigimg
dependency:no dependency named 'zigimg' in 'C:\Users\<user>\Documents\Development\zig-bugreport\deps\common\build.zig.zon'. All packages used in build.zig must be declared in this file.
Expected Behavior
zig-bugreport
executable should compile successfully and be able to import thecommon
module.@mlugg for awareness, as they addressed the original issue
The text was updated successfully, but these errors were encountered: