You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deps operator accepts an optional second argument, which is an integer literal specifying an upper bound on the depth of the search. So deps(foo:*, 1) evaluates to all the direct prerequisites of any target in the foo package, and deps(foo:*, 2) further includes the nodes directly reachable from the nodes in deps(foo:*, 1), and so on.
The example in the second sentence is wrong because deps(foo:*, 1) returns the direct prerequistes of any target in the foo package and all the targets in the foo package.
The text was updated successfully, but these errors were encountered:
Description of the problem / feature request:
https://docs.bazel.build/versions/master/query.html#deps
The example in the second sentence is wrong because
deps(foo:*, 1)
returns the direct prerequistes of any target in the foo package and all the targets in the foo package.The text was updated successfully, but these errors were encountered: