-
Notifications
You must be signed in to change notification settings - Fork 979
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
[feature] Validate includedirs directories - check that they exist #8315
Comments
I do think, that this is a useful check to have, but I'm not sure where it should be implemented - it might be that the hooks is the best place. If it's about hooks, please move the issue. |
And if community agrees, I want to implement this feature myself - I think it's relatively simple, and I will get familiar with conan or conan-hooks development workflow. |
Hi @mathbunnyru Thanks for offering to contribute this feature. Could you please clarify? The |
I think, if someone adds the path which doesn't exist to the I see 0 |
I see. Just beware than in some contexts (like
Yep, Maybe this feature could be a hook? |
Yes, if theoretically it can be implemented as a hook, that would be better I suppose. |
Hi @mathbunnyru I suggest having a look at the hooks repo, where we have some hooks and also the production hooks applied at ConanCenter. This one https://github.com/conan-io/hooks/blob/master/hooks/binary_linter.py is checking the binaries, so getting there and checking the existence of "includedirs" seems relatively easy. The documentation here: https://docs.conan.io/en/latest/reference/hooks.html might also help. Probably it makes a lot of sense to have it as a ConanCenter hook, so it is applied for contributions to conan-center-index. |
Thanks for detailed answer @memsharded! I will take a look! |
https://github.com/conan-io/hooks/blob/master/hooks/conan-center.py#L1332 checks for the existence of the includedirs in every component. Marking this as complated by conan-io/hooks#418 :) |
It would be great, if after
package_info()
Conan validated if all the directories set in includedirs do exist.That would decrease the number of recipes with errors.
For example:
conan-io/conan-center-index#4176
The text was updated successfully, but these errors were encountered: