Migration Help from WORKSPACE to MODULE.bazel #375
-
DescriptionI'm struggling to understand how to migrate from the old style workspace to the new MODULE.bazel. The world of grpc modules seems so fragmented it's hard to tell where the lines between different systems are, so my apologies if I'm asking in the wrong project. Below is the WORKSPACE file, which I've split into parts with commentary, in order to migrate it to MODULE.bazel All of this first bit can just be deleted from the WORKSPACE file
Replaced the following section with
similarly below with
again below with
What is to be done with the following:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It may be enough to just load There are working examples in the |
Beta Was this translation helpful? Give feedback.
It may be enough to just load
rules_proto_grpc_java
inbazel_dep
and bzlmod should handle all the transitive dependencies for you. You need to follow the migration guide in the docs also though: https://rules-proto-grpc.com/en/stable/changelog.html#id2There are working examples in the
/examples
directory for each language also (ignore the local_path_override sections)