-
Notifications
You must be signed in to change notification settings - Fork 1k
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] docker runner doesn't work when conanfile is inside subfolder #17746
Comments
Greetings @aagor, I've been discussing with the team and we are considering giving support to this specific case. But here is a quick workaround to address this issue:
run:
mounts:
<absolute_path>/examples2/examples/conanfile/layout/conanfile_in_subfolder/:
bind: /root/conanrunner/ # This is the mount folder inside the docker runner -> kind of internal to conan...
mode: rw
I hope it helps! |
Hi, |
Hi there! I'm introducing some changes and tests on the incoming runners to support this kind of project where conanfile is inside a subfolder. |
Describe the bug
Environment details:
When using the docker runner, only the current directory get's mapped into the container.
This is not sufficient when the Conanfile is in a subfolder like in this example: Declaring the layout when the Conanfile is inside a subfolder.
Conan then can't access the root folder, as it's not mapped into the container and therefore fails to access files, leading to a build fail.
How to reproduce it
jq
output:[ "/home/<username>/examples2/examples/conanfile/layout/conanfile_in_subfolder/conan:/root/conanrunner/conan:rw" ]
The text was updated successfully, but these errors were encountered: