abrisco / cargo-bazel

A Bazel repository rule for generating Rust dependencies with Cargo.
https://abrisco.github.io/cargo-bazel/
MIT License
4 stars 1 forks source link

Duplicate aliases generated #157

Closed djmarcin closed 2 years ago

djmarcin commented 2 years ago

From our workspace, we are getting duplicate aliases generated which makes the crate index unusable:

alias(
    name = "webpki-roots__process_cert",
    actual = "@crate_index__webpki-roots-0.21.1//:process_cert__bin",
)
alias(
    name = "webpki-roots__process_cert",
    actual = "@crate_index__webpki-roots-0.22.2//:process_cert__bin",
)
abrisco commented 2 years ago

Thanks for the bug report!

Odd, do you have different crates depending on these exact versions?

abrisco commented 2 years ago

@djmarcin Is there a minimal Cargo.toml file you could share that would allow me to reproduce the issue?

abrisco commented 2 years ago

And what version are you using?

abrisco commented 2 years ago

Ooooh, coffee's kicking in. These are binary targets. I think I see the issue (though a repro would still be very nice to be able to use in a regression test).