bazelbuild / stardoc

Stardoc: Starlark Documentation Generator
Apache License 2.0
103 stars 40 forks source link

Error While resolving toolchains for target bazel_tools//tools/jdk:proguard_whitelister No matching toolchains found for types bazel_tools//tools/python:toolchain_type. #196

Closed sgowroji closed 5 months ago

sgowroji commented 7 months ago

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3508#018c3d53-9819-4f9f-ae64-1eec72c03623

Platform :  Windows, Ubuntu, MacOS

Logs:

ERROR: /private/var/tmp/_bazel_buildkite/ebc018ac572b44dbd780df51b0f44ce4/external/bazel_tools/tools/jdk/BUILD:133:10: While resolving toolchains for target @@bazel_tools//tools/jdk:proguard_whitelister (2af9b6f): No matching toolchains found for types @@bazel_tools//tools/python:toolchain_type.
To debug, rerun with --toolchain_resolution_debug='@@bazel_tools//tools/python:toolchain_type'
If platforms or toolchains are a new concept for you, we'd encourage reading https://bazel.build/concepts/platforms-intro.
Target //:host_constraints up-to-date:
  bazel-bin/host_constraints.txt
(03:57:21) ERROR: Analysis of target '//:docs' failed; build aborted: Analysis failed
(03:57:21) INFO: Elapsed time: 3.833s, Critical Path: 0.05s
(03:57:21) INFO: 2 processes: 2 internal.
(03:57:21) ERROR: Build did NOT complete successfully
(03:57:21) FAILED:

Steps:

git clone https://github.com/bazelbuild/stardoc.git 
git reset bf441c86274770ea281d21e22292ecdaa6451eaa --hard
export USE_BAZEL_VERSION=2eda429be6523390e75bf0fb55ece62defd08da0
cd test/bzlmod
bazel build --incompatible_disable_starlark_host_transitions --enable_bzlmod //...

CC Greenteam @meteorcloudy

brentleyjones commented 7 months ago

https://github.com/bazelbuild/bazel/issues/20458

tetromino commented 5 months ago

Fixed upstream in Bazel; the reproducer now passes with Bazel 7.0.1 and with latest green