Skip to content
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

Cargo is unable to work with two included workspaces #14862

Closed
vporton opened this issue Nov 27, 2024 · 1 comment
Closed

Cargo is unable to work with two included workspaces #14862

vporton opened this issue Nov 27, 2024 · 1 comment
Labels
A-workspaces Area: workspaces C-bug Category: bug

Comments

@vporton
Copy link

vporton commented Nov 27, 2024

Problem

Cargo is unable to work with two included workspaces:

cargo locate-project' failed: error: multiple workspace roots found in the same workspace:
  /home/porton/Projects/zondirectory/src/ic_eth
  /home/porton/Projects/zondirectory

This prevents me to use a Git submodule that contains a workspace. There is no easy workaround, apparently.

Steps

  1. Create a Cargo workspace project.
  2. Create another Cargo workspace project in a subdir.
  3. Run compilation.

Possible Solution(s)

Use workspaces in a subdirectory as a part of a parent workspace.

Notes

No response

Version

cargo 1.80.1 (376290515 2024-07-16)
release: 1.80.1
commit-hash: 37629051518c3df9ac2c1744589362a02ecafa99
commit-date: 2024-07-16
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Ubuntu 24.4.0 (noble) [64-bit]
@vporton vporton added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Nov 27, 2024
@weihanglo
Copy link
Member

This is likely a duplicate of #5042. Close in favor of that.

Let us know if there is a reason to keep this open separately.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
@weihanglo weihanglo added A-workspaces Area: workspaces and removed S-triage Status: This issue is waiting on initial triage. labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-workspaces Area: workspaces C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants