Skip to content

path dependencies that are other-workspace workspace-members should mount their workspace #1622

Open
@Emilgardis

Description

@Emilgardis

Checklist

Describe your issue

Cross doesn't consider the workspace path when mounting path dependencies, only looking at the crate path. Cross should instead look for the workspace root of the crate.

What target(s) are you cross-compiling for?

No response

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.5 (4090bec 2024-10-15)

Example

cargo add --path <path_to_other_worksace_member>
cross build

Additional information / notes

context: https://matrix.to/#/!ZFqvHUjUqgONNObpSJ:matrix.org/$CxCTfTP9p1jSYn63720JpkCqiKVr3wnK04pFfOnlt1o?via=matrix.org&via=beeper.com&via=gnome.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions