From 74c2fb8abfe89c8f7fb967d4d7d718f73de674b6 Mon Sep 17 00:00:00 2001 From: jheaff1 Date: Wed, 9 Nov 2022 10:52:47 +0000 Subject: [PATCH] Resolve failure on bazel 4 due to usage of ctx.resolve_command --- .bazelci/config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bazelci/config.yaml b/.bazelci/config.yaml index d3b756f3f..d3505984a 100644 --- a/.bazelci/config.yaml +++ b/.bazelci/config.yaml @@ -201,7 +201,13 @@ tasks: min_supported_targets: &min_supported_targets - "//..." build_targets: *min_supported_targets + # experimental_enable_aggregating_middleman=False is required in bazel 4 otherwise ctx.resolve_command fails. + # This was resolved in https://github.com/bazelbuild/bazel/commit/fb1c369530bd26f9a13560c5979929a999e585e2 + build_flags: + - "--experimental_enable_aggregating_middleman=False" test_targets: *min_supported_targets + test_flags: + - "--experimental_enable_aggregating_middleman=False" buildifier: version: "4.2.5"