Geremia
Geremia

Reputation: 5656

Bazel 8 building TensorBoard: "unknown repo 'io_bazel_rules_closure'"

I'm trying to build tensorboard master, but I get this error:

$ bazel build tensorboard
Starting local Bazel server (8.1.0) and connecting to it...
WARNING: --enable_bzlmod is set, but no MODULE.bazel file was found at the workspace root. Bazel will create an empty MODULE.bazel file. Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. For more details, please refer to https://github.com/bazelbuild/bazel/issues/18958.
WARNING: Target pattern parsing failed.
ERROR: Skipping 'tensorboard': error loading package 'tensorboard': at /tmp/tensorboard/tensorboard/defs/zipper.bzl:17:6: Unable to find package for @@[unknown repo 'io_bazel_rules_closure' requested from @@]//closure/private:defs.bzl: The repository '@@[unknown repo 'io_bazel_rules_closure' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_closure' 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 'tensorboard': at /tmp/tensorboard/tensorboard/defs/zipper.bzl:17:6: Unable to find package for @@[unknown repo 'io_bazel_rules_closure' requested from @@]//closure/private:defs.bzl: The repository '@@[unknown repo 'io_bazel_rules_closure' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_closure' 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.
INFO: Elapsed time: 8.749s
INFO: 0 processes.
ERROR: Build did NOT complete successfully

It refers me to https://bazel.build/external/migration.

Perhaps BUILD needs updating?

load("@npm//@bazel/typescript:index.bzl", "ts_config")

licenses(["notice"])

exports_files(["tsconfig.json"])

# Inspired from internal tsconfig generation for project like TensorBoard.
ts_config(
    name = "tsconfig-lax",
    src = "tsconfig-lax.json",
    visibility = [
        "//tensorboard:internal",
    ],
    deps = [],
)

Upvotes: 0

Views: 18

Answers (0)

Related Questions