As mentioned in the Bazel blog article, the old WORKSPACE system is planned to be disabled by default in Bazel 8, and to be removed altogether in Bazel 9. The WORKSPACE file will eventually be removed, but for now, it’s best to keep the dependency versions in both systems in sync, so that we can build the project with Bzlmod either disabled or enabled.
Note that there is a compatibility issue that prevents this project from depending on protobuf v22 and higher. Until that issue is fixed, v21.7 is the highest version that works with both systems.
As mentioned in the Bazel blog article, the old
WORKSPACE
system is planned to be disabled by default in Bazel 8, and to be removed altogether in Bazel 9. TheWORKSPACE
file will eventually be removed, but for now, it’s best to keep the dependency versions in both systems in sync, so that we can build the project with Bzlmod either disabled or enabled.Note that there is a compatibility issue that prevents this project from depending on protobuf v22 and higher. Until that issue is fixed, v21.7 is the highest version that works with both systems.
References: