Skip to content
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

Dependency not available in testing #102

Open
Wen-jing-Ye opened this issue Jan 18, 2024 · 0 comments
Open

Dependency not available in testing #102

Wen-jing-Ye opened this issue Jan 18, 2024 · 0 comments

Comments

@Wen-jing-Ye
Copy link

After fetching the depency, the module is available in zig build run, but not zig build test

PS C:\Users\nicky\zisp> zig build run 
32
PS C:\Users\nicky\zisp> zig build test
zig test Debug native: error: the following command failed with 1 compilation errors:
C:\Users\nicky\AppData\Roaming\Code\User\globalStorage\ziglang.vscode-zig\zig_install\zig.exe test C:\Users\nicky\zisp\src\main.zig --cache-dir C:\Users\nicky\zisp\zig-cache --global-cache-dir C:\Users\nicky\AppData\Local\zig --name test --listen=-
Build Summary: 0/3 steps succeeded; 1 failed (disable with --summary none)
test transitive failure
└─ run test transitive failure
   └─ zig test Debug native 1 errors
src\main.zig:2:20: error: no module named 'zigrc' available within module root
const rc = @import("zigrc").Rc;
                   ^~~~~~~
referenced by:
    test.Print Expressions: src\main.zig:29:20
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant