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

Return unescaped paths when searching for library files #176

Merged
merged 1 commit into from
May 27, 2024

Conversation

aliu
Copy link
Contributor

@aliu aliu commented May 26, 2024

There is a bug in #134 where search_directory returned the escaped directory, which causes errors when it is later passed to File::open.

One can reproduce the issue by creating a project using bindgen and setting LIBCLANG_PATH to a folder containing square brackets (e.g. /path/to/[foo]bar). clang-sys is able to find the shared libraries inside the [foo]bar folder but is unable to actually load the files because the path becomes /path/to/[[]foo[]]bar/libclang.so.

@KyleMayes KyleMayes merged commit 341ce9d into KyleMayes:master May 27, 2024
3 of 4 checks passed
@KyleMayes
Copy link
Owner

Thanks for the contribution!

@aliu aliu deleted the path-glob branch May 27, 2024 01:50
@aliu
Copy link
Contributor Author

aliu commented May 27, 2024

Happy to help! Any chance we could get a 1.7.1 release with this fix included? 😁

@KyleMayes
Copy link
Owner

Sure, I should have a release out in a few hours (going to look into a few more issues).

@KyleMayes
Copy link
Owner

Just released v1.8.0 with this change.

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

Successfully merging this pull request may close these issues.

2 participants