Skip to content

Problem with 0.2.2 and CROSS_DOCKER_IN_DOCKER #893

@alexet

Description

@alexet

Checklist

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:

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions