Open MatthiasPortzel opened 3 days ago
This looks to be because doctest
invokes zig
as a subprocess to compile doctests without passing through the current working directory. Edit: or intentionally invokes Zig in a tmp directory.
https://github.com/ziglang/zig/blob/master/tools/doctest.zig
Zig Version
0.14.0-dev.2370+5c6b25d9b
Steps to Reproduce and Observed Behavior
Compile Zig with a relative path for
--zig-lib-dir
, for example after bootstrapping Zig with zig-bootstrap [1].Or at any time after with a command like
1: https://github.com/ziglang/zig/wiki/Building-Zig-From-Source#option-b-use-a-pre-built-zig-binary Option B: Use a Pre-Built Zig Binary
Output:
Expected Behavior
Compilation succeeds with an absolute path, for example,
--zig-lib-dir $(realpath lib)
.