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

Regression in 0.13.0 adds aliases for ALL crate dependencies in a workspace, instead of for just the current package #479

Open
joell opened this issue Mar 28, 2022 · 0 comments

Comments

@joell
Copy link

joell commented Mar 28, 2022

In cargo raze 0.12.0, when generating Bazel rules for a workspace of multiple packages, the BUILD.bazel file for each package has alias rules for just the dependencies of that package.

In cargo raze 0.13.0, this behavior changed to add aliases for all the dependencies of every package in the workspace.

This causes Bazel alias conflicts when two packages within the workspace depend on different major versions of a crate (e.g., clap 2.x vs 3.x). In such cases, the Bazel project can no longer build.

It is possible that issue #474 might be reflecting this deeper problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant