Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Sep 19, 2024

Fix mixing rules from builtins and protobuf

The rules in protobuf and built-in Bazel don't mix well. Different aspects may cause actions conflicts. The safest way is to use built-in rules whenever they are still present.

proto_library should be safe, because it's not using an aspect. py_proto_library never had a built-in implementation, so it's also safe.

This still makes it possible to use the rules on Bazel 7, but only with --incompatible_autoload_externally enabled.

@copybara-service copybara-service bot force-pushed the test_676608530 branch 4 times, most recently from 0e322c2 to 3e2aa97 Compare September 24, 2024 23:36
The rules in protobuf and built-in Bazel don't mix well. Different aspects may cause actions conflicts. The safest way is to use built-in rules whenever they are still present.

proto_library should be safe, because it's not using an aspect. py_proto_library never had a built-in implementation, so it's also safe.

This still makes it possible to use the rules on Bazel 7, but only with --incompatible_autoload_externally enabled.

PiperOrigin-RevId: 678446311
@copybara-service copybara-service bot merged commit cb1f518 into main Sep 24, 2024
1 check passed
@copybara-service copybara-service bot deleted the test_676608530 branch September 24, 2024 23:59
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.

1 participant