-
Notifications
You must be signed in to change notification settings - Fork 46
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
add KB-H078 in conan-center to test that system libs are all lowercase if host OS is Windows #480
base: master
Are you sure you want to change the base?
add KB-H078 in conan-center to test that system libs are all lowercase if host OS is Windows #480
Conversation
…e if host OS is Windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Co-authored-by: Rubén Rincón Blanco <[email protected]>
tests/test_hooks/conan-center/test_windows_lowercase_system_libs.py
Outdated
Show resolved
Hide resolved
tests/test_hooks/conan-center/test_windows_lowercase_system_libs.py
Outdated
Show resolved
Hide resolved
tests/test_hooks/conan-center/test_windows_lowercase_system_libs.py
Outdated
Show resolved
Hide resolved
tests/test_hooks/conan-center/test_windows_lowercase_system_libs.py
Outdated
Show resolved
Hide resolved
It could be moved to pre_export, as you are actually checking system_libs only. Early failure is better than needing to wait all build step first. |
It can't work, cpp_info.system_libs is not populated in conanfile object at pre_export time, so you would have to parse conanfile and understand branching and all the logic (with maybe lot of indirection). Moreover some recipes populate cpp_info.system_libs from a file created at package time (like abseil). |
Makes sense, parsing the file content is too much. |
Doing a quick search on master branch, some recipes need to be updated before merging this hook, or it will fail for any new PR:
On the other hand, the hook could be changed to warning level. |
Number of recipes is reasonable. They can be fixed quickly. I've already submited a PR to fix baical-p7 & glu. |
I've submitted PRs for recipes you've listed. |
@uilianries @RubenRBS I think that now, the impact on existing CCI recipes is quite limited, most of them have been fixed. There is still qt & sentry-native, and I have a PR for each of them. I've also seen a strange recipe archicad-apidevkit with uppercase windows system libs (but also propagated if macOS, so weird). |
closes #479