Closed
Description
Checklist
- I've looked through the issues and pull requests for similar reports
Describe your issue
After revision 3a897ba with using CROSS_REMOTE
produced binaries are not copied to host.
I believe that PR #1072 might cause this issue
What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
- macOSWindowsLinux / BSDother OS (specify in description)
What architecture is the host?
- x86_64 / AMD64arm32arm64 (including Mac M1)
What container engine is cross using?
- dockerpodmanother container engine (specify in description)
cross version
cross 0.2.4 (a8082de 2022-10-26)
Example
No response
Additional information / notes
No response
Activity
Alexhuszagh commentedon Oct 31, 2022
We should probably add a CI check to ensure the binaries are copied back to the host in ci/test-remote.sh as well, and not copied when the relevant flags are provided.
Alexhuszagh commentedon Nov 2, 2022
It's checking the wrong directory when attempting to copy back:
This is because the target directory here isn't being mounted at
/cross/target
. This hopefully should be an easy fix.And this is because we're using a relative target directory in the build:
So, we need the
--target-dir
probably be an absolute path if not provided.hulucc commentedon Feb 2, 2023
It works when replace
target_dir
withformat!("{}/{}", package_dirs.mount_root(), target_dir)
when copying back.Emilgardis commentedon Feb 2, 2023
Do you want to create a pr to solve this issue @hulucc ? That seems like the way to solve it.
Merge #1199