bzlmod build occurred some resolution problem: No matching toolchains found for types @bazel_tools//tools/python:toolchain_type #17866
Labels
area-Bzlmod
Bzlmod-specific PRs, issues, and feature requests
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: support / not a bug (process)
Description of the bug:
Hi Bazel teams,
I am doing build monorepo via bazel mod, my example github repo is https://github.com/xushaoxiao/allinone-via-bazelmod.
it occurred a error when i build the source code that includes rules_java and rules_python and other bazel rules, the details is "While resolving toolchains for target @bazel_tools//tools/jdk:proguard_whitelister: No matching toolchains found for types @bazel_tools//tools/python:toolchain_type.", conflicts between rules_java and rules_python imports in MODULE.bazel.
run the build command
bazel build --enable_bzlmod ...
, output error log details is:What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
Mac os
What is the output of
bazel info release
?6.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.LCNC02GG727MD6R:allinone-via-bazelmod shaoxixu$ bazel info release
release 6.1.1-homebrew
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Not found any issues in internet.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: