diff options
author | Kevin Krakauer <krakauer@google.com> | 2021-05-05 11:12:55 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-05 11:15:26 -0700 |
commit | 45884ba6393c05db1f3b16b96a65728b98b9229c (patch) | |
tree | 0fd0af0b49c446a29fd2ba2026abd06db4d1df2b /tools/deps.bzl | |
parent | bf49a847abf30d508e2f229da780a16d09a042f8 (diff) |
Internal change
PiperOrigin-RevId: 372166050
Diffstat (limited to 'tools/deps.bzl')
-rw-r--r-- | tools/deps.bzl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/deps.bzl b/tools/deps.bzl index ed1135a9e..91442617c 100644 --- a/tools/deps.bzl +++ b/tools/deps.bzl @@ -94,8 +94,13 @@ def _deps_test_impl(ctx): ) return [] -# Checks that library and its deps only depends on gVisor and an allowlist of -# other dependencies. +# Checks that targets only depend on an allowlist of other targets. Targets can +# be specified directly, or prefixes can be used to allow entire packages or +# directory trees. +# +# This recursively checks the "deps" attribute of each target, dependencies +# expressed other ways are not checked. For example, protobuf targets pull in +# protobuf code, but aren't analyzed by deps_test. deps_test = rule( implementation = _deps_test_impl, attrs = { |