Skip to content

[Bazel CI] ERROR: While resolving toolchains for target invalid registered toolchain '@local_jdk//:runtime_toolchain_definition': error loading package repo 'local_config_platform' #642

Description

@satyanandak

CI: https://buildkite.com/bazel/bazel-bazel-examples/builds/4897#019ab860-fcd1-4a24-9b97-56f4f228991f

Platform: Windows, Ubuntu

Logs:

(00:20:12) ERROR: /workdir/configurations/cc_binary_selectable_copts/BUILD:9:10: While resolving toolchains for target //cc_binary_selectable_copts:app_with_feature1_native_binary (9d6e610): invalid registered toolchain '@local_jdk//:runtime_toolchain_definition': error loading package '@@rules_java++toolchains+local_jdk//': Unable to find package for @@[unknown repo 'local_config_platform' requested from @@rules_java++toolchains+local_jdk]//:constraints.bzl: The repository '@@[unknown repo 'local_config_platform' requested from @@rules_java++toolchains+local_jdk]' could not be resolved: No repository visible as '@local_config_platform' from repository '@@rules_java++toolchains+local_jdk'.
(00:20:12) ERROR: Analysis of target '//cc_binary_selectable_copts:app_with_feature1' failed; build aborted: Analysis failed
(00:20:12) INFO: Elapsed time: 1.387s, Critical Path: 0.05s
(00:20:12) INFO: 1 process: 1 internal.
(00:20:12) ERROR: Build did NOT complete successfully

CC Greenteam @Wyverald

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