-
Notifications
You must be signed in to change notification settings - Fork 422
Description
Checklist
- I've looked through the issues and pull requests for similar reports
Describe your issue
Cross no longer seems to work with our project with docker in docker.
Not using docker or downgrading fixes the issue. Not using a path
for a dependency also works.
The error is error: could not find
Cargo.tomlin
/home/runner/work/cross-bug-reduced/cross-bug-reduced or any parent directory
What target(s) are you cross-compiling for?
x86_64-unknown-linux-gnu
Which operating system is the host (e.g computer cross is on) running?
- macOS
- Windows
- Linux / BSD
- other OS (specify in description)
What architecture is the host?
- x86_64 / AMD64
- arm32
- arm64 (including Mac M1)
What container engine is cross using?
- docker
- podman
- other container engine (specify in description)
cross version
cross 0.2.2
Example
The example is reduced from an internal case and is therefore pointless.
Inside a docker image do the following steps:
- Clone https://github.com/alexet/cross-bug-reduced
- Set CROSS_DOCKER_IN_DOCKER
- cross build --target x86_64-unknown-linux-gnu
Additional information / notes
Working run with cross 0.2.1 : https://github.com/alexet/cross-bug-reduced/runs/7151280983
Broken run with 0. 2.2: https://github.com/alexet/cross-bug-reduced/actions/runs/2597098367
Working run with 0.2.2 without docker: https://github.com/alexet/cross-bug-reduced/actions/runs/2597098367
Working run without dependency: https://github.com/alexet/cross-bug-reduced/runs/7149368098