Skip to content

Commit

Permalink
Mention that target tagged manual are *not* filtered out of negativ…
Browse files Browse the repository at this point in the history
…e target patterns (i.e. they will be subtracted).

This has been Blaze's behavior since 2010 but I can't find it documented anywhere.

PiperOrigin-RevId: 524291423
Change-Id: Ifeb63e184518e89933e8cc527c49ff79582b0590
  • Loading branch information
haxorz authored and fweikert committed May 25, 2023
1 parent a83e3a8 commit 0741771
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions site/en/run/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ part of building the former.

Targets with `tags = ["manual"]` are not included in wildcard target patterns
(`...`, `:*`, `:all`, etc.) when specified in commands like
`bazel build` and `bazel test`; you should specify such
test targets with explicit target patterns on the command line if you want Bazel
to build/test them. In contrast, `bazel query` doesn't perform any
such filtering automatically (that would defeat the purpose of
`bazel build` and `bazel test` (but they are included in
negative wildcard target patterns, that is they will be subtracted). You should
specify such test targets with explicit target patterns on the command line if
you want Bazel to build/test them. In contrast, `bazel query` doesn't perform
any such filtering automatically (that would defeat the purpose of
`bazel query`).

### Fetching external dependencies {:#fetching-external-dependencies}
Expand Down

0 comments on commit 0741771

Please sign in to comment.