-
Notifications
You must be signed in to change notification settings - Fork 696
Closed
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 function:load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
container_deps()
If I call container_deps suddently all my py_binary rules stop working.
Is this a regression?
Don't think soDescription
I have a repo with multiple binaries being built. Some of them are python using the py_binary rule. If I introduce the boilerplate to add rules_docker in the WORKSPACE file, the py_binary targets can't be built.
🔬 Minimal Reproduction
See a minimal example here: https://github.com/chaosct/error_py_binary_rules_docker
🔥 Exception or Error
> bazel build --define=VERBOSE_LOGS=1 //...
INFO: Build option --define has changed, discarding analysis cache.
ERROR: /Users/protopixel/Documents/scratch/poc_f/BUILD:5:10: While resolving toolchains for target //:pre-commit: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file? See https://github.com/bazelbuild/bazel/issues/10134 for details and migration instructions.
ERROR: Analysis of target '//:pre-commit' failed; build aborted:
INFO: Elapsed time: 0.245s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (24 packages loaded, 248 targets configured)
🌍 Your Environment
Operating System:
OSX 11.4 (M1)
Output of bazel version:
Bazelisk version: v1.11.0
Build label: 5.1.1
Build target: bazel-out/darwin_arm64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Apr 8 15:58:49 2022 (1649433529)
Build timestamp: 1649433529
Build timestamp as int: 1649433529
Rules_docker version:
http_archive(
name = "io_bazel_rules_docker",
sha256 = "27d53c1d646fc9537a70427ad7b034734d08a9c38924cc6357cc973fed300820",
strip_prefix = "rules_docker-0.24.0",
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.24.0/rules_docker-v0.24.0.tar.gz"],
)
Anything else relevant?
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