From fc5938ad41d63fe80abcbf290b479c88ae2f0e51 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 24 Apr 2020 11:43:01 -0400 Subject: [PATCH] handle mirror urls in check_bazel_workspace.py --- tools/run_tests/sanity/check_bazel_workspace.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/run_tests/sanity/check_bazel_workspace.py b/tools/run_tests/sanity/check_bazel_workspace.py index 641692dc16e..99252b717af 100755 --- a/tools/run_tests/sanity/check_bazel_workspace.py +++ b/tools/run_tests/sanity/check_bazel_workspace.py @@ -109,7 +109,12 @@ class BazelEvalState(object): if args['name'] in _GRPC_BAZEL_ONLY_DEPS: self.names_and_urls[args['name']] = 'dont care' return - self.names_and_urls[args['name']] = args['url'] + url = args.get('url', None) + if not url: + # we will only be looking for git commit hashes, so concatenating + # the urls is fine. + url = ' '.join(args['urls']) + self.names_and_urls[args['name']] = url def git_repository(self, **args): assert self.names_and_urls.get(args['name']) is None