-
Notifications
You must be signed in to change notification settings - Fork 394
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
Fix paths when using CROSS_CONTAINER_IN_CONTAINER
#1483
Fix paths when using CROSS_CONTAINER_IN_CONTAINER
#1483
Conversation
/ci try -t cross |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
30c2218
to
c6e3316
Compare
I forgot about the changelog entry, sorry! |
/ci try -t cross |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The Windows CI failure seems to be caused by a recent commit to Edit: Fixed in #1484. |
/ci try -t cross |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
oh yeah, it doesn't rebase to master, should fix that :3 |
c6e3316
to
109737f
Compare
/ci try -t cross |
This comment has been minimized.
This comment has been minimized.
Try run for comment
Successful Jobs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Currently, `MountFinder` is used for almost all paths, rather than only for the host path in bind/volume mounts. Because of this, `docker build` invocations use the wrong working directory (`/var/lib/docker/.../workdir-path` instead of `/workdir-path`), causing failures for builds that use `pre-build` with a relative file path, and `docker run` invocations use incorrect `-v` arguments (e.g. `/var/lib/docker/.../toolchain-dir:/var/lib/docker/.../toolchain-dir` instead of `/var/lib/docker/.../toolchain-dir:/toolchain-dir`). This PR fixes those issues by only using `find_path` and `find_mount_path` when necessary.
failure is unrelated |
Currently,
MountFinder
is used for almost all paths, rather than only for the host path in bind/volume mounts.Because of this,
docker build
invocations use the wrong working directory (/var/lib/docker/.../workdir-path
instead of/workdir-path
), causing failures for builds that usepre-build
with a relative file path, anddocker run
invocations use incorrect-v
arguments (e.g./var/lib/docker/.../toolchain-dir:/var/lib/docker/.../toolchain-dir
instead of/var/lib/docker/.../toolchain-dir:/toolchain-dir
).This PR fixes those issues by only using
find_path
andfind_mount_path
when necessary.