protocolbuffers / protobuf-javascript

BSD 3-Clause "New" or "Revised" License
330 stars 66 forks source link

Use bzlmod to manage external dependencies #186

Closed luangong closed 5 months ago

luangong commented 5 months ago

Bzlmod is the new way to to manage external dependencies. The --enable_bzlmod flag was introduced in Bazel 6 and has been turned on by default since Bazel 7, so declaring external dependencies in WORKSPACE is considered legacy behavior. The old WORKSPACE-system is planned to be disabled in Bazel 8 and to be removed altogether in Bazel 9.

This commit migrates from WORKSPACE to bzlmod.

References:

luangong commented 5 months ago

The lockfile is already auto-generated. Maybe we should enable --lockfile_mode=error in the CI pipeline?

dibenede commented 5 months ago

I think it'll be ok for the time being. Thank you the contribution!