Skip to content

[Bazel 8.0.0] cpp-samples/setup does not build on a clean system #374

@Rkiouak

Description

@Rkiouak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions