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.
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 inWORKSPACE
is considered legacy behavior. The oldWORKSPACE
-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: