protovalidate icon indicating copy to clipboard operation
protovalidate copied to clipboard

Bazel: add MODULE.bazel files for bzlmod

Open mmorel-35 opened this issue 11 months ago • 3 comments

I'm trying a migration to bzlmod here.

go_googleapis is missing here because rules_go has removes it from it's dependencies

Signed-off-by: Matthieu MOREL [email protected]

mmorel-35 avatar Feb 25 '24 21:02 mmorel-35

Do we need to make any changes to CI to use bzlmod?

Bzlmod itself doesn't require it but something else could.

While running generate-bazel an extra buf_push appears and it's not yet available in a release yet.

So I'm wondering if it's not too early to use bzlmod after all

mmorel-35 avatar Feb 26 '24 21:02 mmorel-35

Bzlmod itself doesn't require it but something else could.

(Sorry, unfamiliar with bzlmod and only weakly familiar with bazel as a whole)

I mean, do we need to execute anything in CI to ensure that the module works with bzlmod.

rodaine avatar Feb 26 '24 22:02 rodaine

To enable bzlmod, you need to use --enable_bzlmod argument in your command line.

  • bazel build --enable_bzlmod //example/... because of the absence of go_googleapis.
  • bazel build --enable_bzlmod //proto/... is working

mmorel-35 avatar Mar 02 '24 12:03 mmorel-35