You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using cache=shared with a docker runner, the profiles are not copied to .conanrunner/profiles as they will be available in the shared .conan2 directory. But the create command has the profiles modified to include the .conanrunner/profiles/ prefix and a numbered suffix (e.g. clang12 becomes .conanrunner/profiles/clang12_0), so they are not found.
From what I can see in the code, for cache=clean or cache=copy, the profiles are copied to .conanrunner/profiles and then inside the container they are copied into ${HOME}/.conan2/profiles/ Which suggests that the prefix should not need to be appended when changing the profile names as they should be available in the conan home profiles directory. Additionally for the shared case they also shouldn't have the numeric suffix added, as the profile hasn't been renamed/copied. In fact if the suffix was not appended at all when copying, I don't think the profile paths would need adjusting in the create command for any of the possible cache options.
Describe the bug
When using cache=shared with a docker runner, the profiles are not copied to .conanrunner/profiles as they will be available in the shared .conan2 directory. But the create command has the profiles modified to include the .conanrunner/profiles/ prefix and a numbered suffix (e.g. clang12 becomes .conanrunner/profiles/clang12_0), so they are not found.
From what I can see in the code, for cache=clean or cache=copy, the profiles are copied to .conanrunner/profiles and then inside the container they are copied into ${HOME}/.conan2/profiles/ Which suggests that the prefix should not need to be appended when changing the profile names as they should be available in the conan home profiles directory. Additionally for the shared case they also shouldn't have the numeric suffix added, as the profile hasn't been renamed/copied. In fact if the suffix was not appended at all when copying, I don't think the profile paths would need adjusting in the create command for any of the possible cache options.
How to reproduce it
Follow steps in docs https://docs.conan.io/2/examples/runners/docker/basic.html#examples-runners-docker-basic but change cache=copy to cache=shared in the profile.
My conan version is 2.3.1
The text was updated successfully, but these errors were encountered: