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

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

Open
MasonRemaley opened this issue Nov 16, 2024 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@MasonRemaley
Copy link
Contributor

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.

@MasonRemaley MasonRemaley added the bug Observed behavior contradicts documented or intended behavior label Nov 16, 2024
@MasonRemaley MasonRemaley changed the title Can no longer pass empty path to installHeadersDirectory Can no longer pass package path to installHeadersDirectory source without "." Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

1 participant