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

protobuf-codegen 3.x.x does not appear in binary_crates #2990

Open
cpederkoff-carbon opened this issue Nov 7, 2024 · 0 comments
Open

protobuf-codegen 3.x.x does not appear in binary_crates #2990

cpederkoff-carbon opened this issue Nov 7, 2024 · 0 comments

Comments

@cpederkoff-carbon
Copy link

When I add the following to my workspace file:

crates_repository(
    name = "crate_index",
    annotations = {
        "protobuf-codegen": [crate.annotation(
            gen_binaries = ["protoc-gen-rust"],
        )],
    },
    cargo_lockfile = "//:cargo.lock",
    lockfile = "//:cargo.Bazel.lock",
    packages = {
        "protobuf-codegen": crate.spec(
            version = "3.7.1",
        ),
    },
    render_config = render_config(
        default_package_name = "",
    ),
)

the cargo.Bazel.lock shows

"binary_crates": [],

But when I drop the protobuf-codegen version to 2.28.0 the cargo.Bazel.lock shows

"binary_crates": [
    "protobuf-codegen 2.28.0"
  ],

This is unexpected because the protobuf-codegen 3.x.x appears to me to be a binary crate just like 2.x.x

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