aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
authorGravatar Mark Schaller <mschaller@google.com>2015-03-17 20:55:30 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-03-18 13:46:07 +0000
commitb889cf31f4f84516787faecac04b0c4cb1981bc5 (patch)
treec9f2455d27a1e33d80ce23aeb6209cf52a32f651 /src/main/java/com/google/devtools/build/lib/runtime
parent0942ee952efbc35d5def38216fe70d54a2dcd558 (diff)
On-the-fly target pattern resolution in SkyQueryEnvironment
Moves pattern resolving logic from TargetPatternFunction.Resolver to a top level class. Adds a layer of abstraction to the Resolver implementation enabling it to be backed by either an Environment or a Graph, for use in SkyFunction evaluation or on-the-fly evaluation, respectively. Finally, SkyQueryEnvironment#preloadOrThrow now checks to see if each target pattern exists in the graph, and any that don't will be resolved on-the-fly. -- MOS_MIGRATED_REVID=88861201
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java
index c2851b27f7..7b54eb1bd0 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/QueryCommand.java
@@ -174,6 +174,7 @@ public final class QueryCommand implements BlazeCommand {
runtime.getTargetPatternEvaluator(),
keepGoing, orderedResults, universeScope, loadingPhaseThreads, runtime.getReporter(),
settings,
- functions.build());
+ functions.build(),
+ runtime.getPackageManager().getPackagePath());
}
}