On Ubuntu Linux:
git clone https://github.com/GoogleCloudPlatform/cpp-samples.git
cd cpp-samples/setup
bazel build //setup:hello-world --noenable_bzlmod --enable_workspace
results in:
$ bazel build //setup:hello-world --noenable_bzlmod --enable_workspace
WARNING: WORKSPACE support will be removed in Bazel 9 (late 2025), please migrate to Bzlmod, see https://bazel.build/external/migration.
ERROR: Error computing the main repository mapping: cannot load '@@rules_java//java:rules_java_deps.bzl': no such file
I tried getting a bzlmod setup working, but am not very familiar with either vcpkg or Bazel (I'm coming from an internal build tool, Blaze).
The search results I saw for the rules_java error above did not seem relevant for Bazel 8.0.0.