When building TCmalloc onto to a new machine, I faced an installation error:
[ec2-user@ip-10-122-26-118 tcmalloc-mongo-20240522]$ bazel test //tcmalloc/... ERROR: Skipping '//tcmalloc/...': error loading package under directory 'tcmalloc': error loading package 'tcmalloc': Unable to find package for @@[unknown repo 'rules_fuzzing' requested from @@]//fuzzing:cc_defs.bzl: The repository '@@[unknown repo 'rules_fuzzing' requested from @@]' could not be resolved: No repository visible as '@rules_fuzzing' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration. ERROR: error loading package under directory 'tcmalloc': error loading package 'tcmalloc': Unable to find package for @@[unknown repo 'rules_fuzzing' requested from @@]//fuzzing:cc_defs.bzl: The repository '@@[unknown repo 'rules_fuzzing' requested from @@]' could not be resolved: No repository visible as '@rules_fuzzing' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
This was reproduced under ubuntu2004 (our main machine) as well. Following the error it says this line:
The WORKSPACE file is disabled by default in Bazel 8 (late 2024)
It seems that bazel has disabled the use of WORKSPACE and is forcing us to migrate to Bzlmod.