-
Notifications
You must be signed in to change notification settings - Fork 948
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
[bug] SystemPackageTool installs packages when it should not #10592
Comments
There is a new tool for system packages in https://docs.conan.io/en/latest/reference/conanfile/tools/system/package_manager.html. Its default should be not install only check. It would be great to double check this is correct @czoido As SystemPackageTool is removed from 2.0 and migrating to the new tools will be necessary, changing the current SystemPackageTool might be risky, unless it is very clear the fix, maybe not touch it if it can be breaking |
In the new implementation it is covered by this test:
Anyway I double checked with a functional test and it's working as expected. |
How can I define in the recipe, that the requirement should be installed? I also suggest another mode: |
@derived-coder I suggest you create another issue, because this issue is not related to |
In this case, never install any package fixes #10592
Hello, I have a newbie question about tools.system.package_manager:mode configuration as described in https://docs.conan.io/en/latest/reference/conanfile/tools/system/package_manager.html#conan-tools-system-package-manager I have a recipe with following snippet:
But when executing Could you help me on the correct way to change Regards. |
Please, read the docs about how to use the configuration properties. You can't use it directly in the recipes as you are doing, you can do it several ways:
Hope this helps! |
Also, please check that you don't need to check the distro for the new Apt(self).install(["gcovr"], update=True, check=True)
Yum(self).install(["gcovr"], update=True, check=True) |
By default, SystemPackageTool should not install any system packages, but just check if they are installed.
The very surprising part, is that it displays
Not updating system_requirements. CONAN_SYSREQUIRES_MODE=verify
just before installing system packages.Environment Details
Steps to reproduce
also
Logs
The text was updated successfully, but these errors were encountered: