-
Notifications
You must be signed in to change notification settings - Fork 994
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
system_requirements files not shared between host/docker #3812
Comments
In fact, this is caused by the same reason in #2262 |
Everytime libA is installed the system requirements method will be called if it hasn't installed before so I don't understand exactly what is the issue. What do you mean with |
Actually I run the build inside Docker container and the local cache is stored on a persistent volume. So rerun the build of the application will not install system package anymore. |
I think it is better to store system_reqs.txt alongside with systems, so local cache can be freely shared among different nodes. If system_reqs.txt are stored in the user’s home directory instead of CONAN_USER_HOME, then problem will be perfectly resolved. |
I wouldn't recommend sharing the cache with the containers, to be honest. It can be problematic with the permissions of the storage and for example with the system requirements. I would say it more solid to communicate with a conan server (or better Artifactory community edition) |
I don't think permission is a big issue, because Docker can use |
- Add option to remove system_reqs from package cache. Signed-off-by: Uilian Ries <uilianries@gmail.com>
- conan remove --system_reqs should remove global requirement folder. - Should we support by package id? Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Conan remove --system-reqs forwards the exception message when an error occurs. - Re-order remove command arguments - Add test to check system-reqs error message Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Add support to parse package reference when `remove --system-reqs -p <ref>` is executed and remove ONLY the cache for the specific package id. Signed-off-by: Uilian Ries <uilianries@gmail.com>
This reverts commit 4d3e7fc.
- Package ID is NOT supported for system-reqs - Ignore error, like permission or path not found Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Add exception for permission denied and wrong pkg ref - Add new test to check possible errors in system-reqs Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* #3812 Remove cached system_reqs - Add option to remove system_reqs from package cache. Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 Add tests for remove --system_reqs - conan remove --system_reqs should remove global requirement folder. - Should we support by package id? Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 remove logger from cache Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 Update system_reqs description Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 --system-reqs can raise error - Conan remove --system-reqs forwards the exception message when an error occurs. - Re-order remove command arguments - Add test to check system-reqs error message Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 Remove system-reqs by package id - Add support to parse package reference when `remove --system-reqs -p <ref>` is executed and remove ONLY the cache for the specific package id. Signed-off-by: Uilian Ries <uilianries@gmail.com> * Revert "#3812 Remove system-reqs by package id" This reverts commit 4d3e7fc. * #3812 Ignore errors when remove system-reqs - Package ID is NOT supported for system-reqs - Ignore error, like permission or path not found Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 Remove system-reqs can raise errors - Add exception for permission denied and wrong pkg ref - Add new test to check possible errors in system-reqs Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 Fix test for Windows platform Signed-off-by: Uilian Ries <uilianries@gmail.com> * #3812 Replace rmtree by rmdir Signed-off-by: Uilian Ries <uilianries@gmail.com>
I have an application depends on a library libA. libA's recipe has a system_requirements() method which installs a system library. libA's artifact is stored remotely. When I built the applications, it failed to find the system library installed by the libA's recipe.
Is system_requirements() transitive? If so, how to specify in the conanfile.txt or conanfile.py of application?
By the way, I don't want to build libA from source.
The text was updated successfully, but these errors were encountered: