diff options
author | David Garcia Quintas <dgq@google.com> | 2018-06-04 11:18:09 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2018-06-04 11:21:19 -0700 |
commit | fdf6a302d109dd998a2061fa60e640636cec3b3c (patch) | |
tree | cb184c239587443473c2c0fe6612ae37c8ab1a3e /tools/run_tests/sanity | |
parent | 99dc56758e461d35e63ea84fd8cafc715bec0802 (diff) |
Add nanopb as an exception to sanity bazel workspace script
Diffstat (limited to 'tools/run_tests/sanity')
-rwxr-xr-x | tools/run_tests/sanity/check_bazel_workspace.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/run_tests/sanity/check_bazel_workspace.py b/tools/run_tests/sanity/check_bazel_workspace.py index fcffa22be4..ea670e4235 100755 --- a/tools/run_tests/sanity/check_bazel_workspace.py +++ b/tools/run_tests/sanity/check_bazel_workspace.py @@ -21,6 +21,7 @@ import os import re import subprocess import sys +import pdb os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '../../..')) @@ -121,9 +122,12 @@ names_without_bazel_only_deps = names_and_urls.keys() for dep_name in _GRPC_BAZEL_ONLY_DEPS: names_without_bazel_only_deps.remove(dep_name) archive_urls = [names_and_urls[name] for name in names_without_bazel_only_deps] +# Exclude nanopb from the check: it's not a submodule for distribution reasons, +# but it's a workspace dependency to enable users to use their own version. workspace_git_hashes = { re.search(git_hash_pattern, url).group() for url in archive_urls + if 'nanopb' not in url } if len(workspace_git_hashes) == 0: print("(Likely) parse error, did not find any bazel git dependencies.") |