aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib
diff options
context:
space:
mode:
authorGravatar Julio Merino <jmmv@google.com>2016-07-19 10:55:02 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-07-19 18:11:32 +0000
commit56e082bba4fa5cd02a1c537abf41138619c22d1d (patch)
treed22c616d1a16493b6406cd523a20ff873e7555aa /src/main/java/com/google/devtools/build/lib
parent23cf396c9945831858c4841a9d9d1906c8ecb724 (diff)
Explain why recursive patterns are not allowed in genquery.
-- MOS_MIGRATED_REVID=127815874
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/genquery/GenQueryRule.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/genquery/GenQueryRule.java b/src/main/java/com/google/devtools/build/lib/rules/genquery/GenQueryRule.java
index bbcfbe8e5d..43610fde82 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/genquery/GenQueryRule.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/genquery/GenQueryRule.java
@@ -83,10 +83,17 @@ public final class GenQueryRule implements RuleDefinition {
<code>strict</code> is unspecified or true (if <code>strict</code> is false,
the out of scope targets will simply be skipped with a warning). The
easiest way to make sure this does not happen is to mention the same labels
- in the scope as in the query expression. The only difference between the
- queries allowed here and on the command line is that queries containing
- wildcard target specifications (e.g. <code>//pkg:*</code> or
- <code>//pkg:all</code>) are not allowed here.
+ in the scope as in the query expression.
+ </p>
+ <p>
+ The only difference between the queries allowed here and on the command
+ line is that queries containing wildcard target specifications (e.g.
+ <code>//pkg:*</code> or <code>//pkg:all</code>) are not allowed here.
+ The reasons for this are two-fold: first, because <code>genquery</code> has
+ to specify a scope to prevent targets outside the transitive closure of the
+ query to influence its output; and, second, because <code>BUILD</code> files
+ do not support wildcard dependencies (e.g. <code>deps=["//a/..."]</code>
+ is not allowed).
</p>
<p>
The genquery's output is ordered using <code>--order_output=full</code> in