Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

[tracking] can't use global workspace-hack crate because of bugs in cargo #524

Open
sunshowers opened this issue Dec 8, 2021 · 0 comments

Comments

@sunshowers
Copy link
Contributor

cargo hakari 0.9.9 used a scheme where it would assume everything could target the same workspace-hack crate. Unfortunately, it turns out that cargo has a few bugs which prevent that from working:

Running cargo build -p workspace-hack -p <crate that depends on external workspace-hack> results in:

error: There are multiple `workspace-hack` packages in your project, and the specification `workspace-hack` is ambiguous.
Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
  file:///opt/git/diem/crates/workspace-hack#0.1.0
  https://github.com/rust-lang/crates.io-index#workspace-hack:0.1.0

Also, if there's a local workspace-hack, trying to add a path dependency that also has a local workspace-hack can cause Cargo to produce a conflict error while writing out Cargo.lock.

sunshowers added a commit to sunshowers/cargo-guppy that referenced this issue Dec 8, 2021
…ack crate names

Unfortunately, cargo has a couple of bugs: facebookarchive#524
sunshowers added a commit to sunshowers/cargo-guppy that referenced this issue Dec 8, 2021
sunshowers added a commit to sunshowers/cargo-guppy that referenced this issue Dec 8, 2021
sunshowers added a commit that referenced this issue Dec 8, 2021
…ack crate names

Unfortunately, cargo has a couple of bugs: #524
sunshowers added a commit that referenced this issue Dec 8, 2021
Unfortunately, cargo has a few bugs: #524
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant