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] make system_requirements error logger more informative #11706
Comments
Can you please report which tool are you using inside |
I am not sure, what do you exactly mean. |
Good, that is using the new tooling in |
Hi @AndreyMlashkin, |
I would like to see, which packages are missing. |
I think the problem is that the recipe in conan-center-index is forcing an update for the packages but that will make that something like |
Did you try to set the conf: You can do that in the command line like:
Or in the |
My CI is failing with the same error
My CI has sudo, but not sure what to do about this. I tried adding the following but it didn't work
Is there anything else I'm supposed to add? |
Hi @GavinNL,
Hope this helps. |
Ahh okay. looks like that worked. Thanks! Is there a way to get the list of system packages required by the conanfile? something like:
|
I don't need to install the dependencies, I only want to print missing ones. The same as a call |
@GavinNL we don't have a dedicated command for that but you could iterate the dependencies in the conanfile's def generate(self):
system_libs = []
for dep in self.dependencies.values():
if dep.cpp_info.has_components:
sorted_components = dep.cpp_info.get_sorted_components().items()
for comp_name, comp_cpp_info in sorted_components:
system_libs.extend(comp_cpp_info.system_libs)
else:
system_libs.extend(dep.cpp_info.system_libs)
print(system_libs) In Conan 2.0, there's the possibility to add your own custom commands, so you could make your own command for that. You can read about that in the Conan 2.0 documentation. |
@AndreyMlashkin |
currently, error log looks like:
If should contain a list, which packages are missing.
The text was updated successfully, but these errors were encountered: