ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
35.06k stars 2.56k forks source link

Can no longer pass package path to installHeadersDirectory source without "." #21997

Open MasonRemaley opened 6 days ago

MasonRemaley commented 6 days ago

Zig Version

0.14.0-dev.1820+ea527f7a8

Steps to Reproduce and Observed Behavior

This project's build script used to have this line:

dear_imgui_lib.installHeadersDirectory(upstream.path(""), "", .{});

However, under the current version of Zig this results in an error:

error: unable to open source directory '': FileNotFound

If you change the initial "" to "." then it works as expected:

dear_imgui_lib.installHeadersDirectory(upstream.path("."), "", .{});

Expected Behavior

I expected this line to install the headers it finds in the root of upstream into the include directory.

squeek502 commented 5 days ago

Out of curiosity, are you now building on a different host system? I could be wrong, but I think "" acting like "." is platform dependent.

MasonRemaley commented 4 days ago

Same system--I deleted my cache and rebuilt and then got this failure.