From 6a6cc2a644aa33e21c9593400939d10b96224af8 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Wed, 19 May 2021 12:03:57 +0100 Subject: [PATCH] cquery inherits from `test` not `build` This makes flags like `--test_arg` present in `.bazelrc` files be factored into the configuration hash for test targets. See https://github.com/bazelbuild/bazel/issues/13428 for extensive context. --- .../devtools/build/lib/runtime/commands/CqueryCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/CqueryCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/CqueryCommand.java index 3e30913b55f1fe..a3382cb2d927ce 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/CqueryCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/CqueryCommand.java @@ -48,7 +48,7 @@ @Command( name = "cquery", builds = true, - inherits = {BuildCommand.class}, + inherits = {TestCommand.class}, options = {CqueryOptions.class}, usesConfigurationOptions = true, shortDescription = "Loads, analyzes, and queries the specified targets w/ configurations.",