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

Don't load cc_proto_library from rules_cc: not there anymore. #376

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

hzeller
Copy link
Collaborator

@hzeller hzeller commented Jan 27, 2025

Since 6.x, the cc_proto_library() is part of default bazel rules https://bazel.build/versions/6.5.0/reference/be/c-cpp

And removed as of 0.1.0 from rules_cc:
https://github.com/bazelbuild/rules_cc/releases/tag/0.1.0

making the load call fail if used in a context with newer rules_cc.

@hzeller
Copy link
Collaborator Author

hzeller commented Jan 27, 2025

buildifier is drunk (or too old)

What it means is to load it from load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library"), but that is not available in the requested protobuf version. So this change is the best that is compatible with all worlds currently.

@QuantamHD
Copy link
Collaborator

Is there a way to disable buildifier on those lines with a comment? Otherwise this step will always fail

Since 6.x, the cc_proto_library() is part of default bazel rules
https://bazel.build/versions/6.5.0/reference/be/c-cpp

And removed as of 0.1.0 from rules_cc:
https://github.com/bazelbuild/rules_cc/releases/tag/0.1.0

making the load call fail if used in a context with newer
rules_cc.
@hzeller hzeller force-pushed the feature-20250127-no-protoc branch from dd3e0b2 to 6486a8e Compare January 27, 2025 23:22
@hzeller
Copy link
Collaborator Author

hzeller commented Jan 27, 2025

Looks like there is!

@hzeller
Copy link
Collaborator Author

hzeller commented Jan 29, 2025

So, ready to merge ?

@mikesinouye mikesinouye merged commit 160115f into hdl:main Jan 29, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants