vaticle / dependencies

Bazel dependency declarations for build tools reused across @vaticle repositories (only for @vaticle)
Mozilla Public License 2.0
12 stars 23 forks source link

Improve clarity of protobuf/grpc builder #492

Closed jamesreprise closed 6 months ago

jamesreprise commented 6 months ago

What is the goal of this PR?

We've improved the clarity of our protobuf/grpc builder, renaming it to proto_grpc. This names it more accurately, rather than obscuring the protobuf aspect beneath GRPC. Previously this name made an amount of sense as we were only interested in GRPC.

This change was motivated by a desire to use protobuf-only java rules within TypeDB Platform.

What are the changes implemented in this PR?

We've renamed //builder/grpc to //builder/proto_grpc. We've also extended the builder to allow for just importing rules_proto_grpc rather than as well as GRPC.

This breaks existing usages of //builder/grpc. See below for a migration guide.

Migration

Where previously we used the following:

# Load //builder/grpc
load("@vaticle_dependencies//builder/grpc:deps.bzl", vaticle_grpc_deps = "deps")
vaticle_grpc_deps()

Now we do:

# Load //builder/proto_grpc
load("@vaticle_dependencies//builder/proto_grpc:deps.bzl", vaticle_proto_grpc_deps = "deps")
vaticle_proto_grpc_deps()
typedb-bot commented 6 months ago

PR Review Checklist

Do not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed.


Trivial Change

Code

Architecture