-
Notifications
You must be signed in to change notification settings - Fork 696
Open
Labels
Can Close?Will close in 30 days unless there is a comment indicating why notWill close in 30 days unless there is a comment indicating why not
Description
🐞 bug report
Affected Rule
The issue is caused by the rule: java_image
Is this a regression?
Yes, the previous version in which this bug was not present was: 0.22.0
Description
When building a simple Java Docker image on macOS, the build fails with “No matching toolchains found”. It works on Linux, since the target and host platforms are identical.
🔬 Minimal Reproduction
See https://github.com/eikemeier/java-container
🔥 Exception or Error
bazel build //src/main/java/com/example/hello_world:hello_world_image
[...]
ERROR: [...]/java-container/src/main/java/com/example/hello_world/BUILD:16:11: While resolving toolchains for target //src/main/java/com/example/hello_world:hello_world_image.binary: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. [...]
🌍 Your Environment
Operating System:
macOS Catalina 10.15.7
Output of bazel version:
5.0.0
Rules_docker version:
0.23.0
Anything else relevant?
See also #1988 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Can Close?Will close in 30 days unless there is a comment indicating why notWill close in 30 days unless there is a comment indicating why not