Skip to content

Dependency not available in testing #102

Description

@Wen-jing-Ye

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions