-
Notifications
You must be signed in to change notification settings - Fork 726
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
Fix dependency conflicts when used with git or path locations #3777
Conversation
What does the Cargo.toml for an external project end up looking with this change? I'm worried that external projects may not compile if they try to use the The workaround that I've been using for external projects is just to replicate the |
For external projects:
N.B. If both p.s. When the crates are published into Ref: The Cargo Book / Specifying Dependencies / Multiple locations |
We've actually just made a resolution this week to extract these common crates into their own repos, which will force us to keep them up to date on We'll likely do the crate extraction and cleanup in January |
That sounds awesome! I was working on a downstream cross-chain project, we couldn't publish our project until all upstream dependencies are published. And, I still suggest that avoiding [the Another Irrelevant Suggestion: Is there any plan for
|
Yeah that's the plan!
We could definitely support I'll ping you once we've extracted the repos |
Hey @yangby-cryptape, we've finished extracting the repos but haven't merged the PR that uses them in Lighthouse yet. I'll close this PR in favour of that one: #3890. Thanks! |
Issue
When specifying crates that in
lighthouse
as dependencies with git or path locations, it always throws errors when builds.Because the latest versions of some crates haven't published to
crates.io
.An example:
In
Cargo.toml
:The error:
Proposed Changes
Replace the
patch
section withmultiple locations
to specify dependencies.