aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2018-12-03 13:40:56 -0800
committerGravatar GitHub <noreply@github.com>2018-12-03 13:40:56 -0800
commitf8696b5136108fd2d46e553fdd550e1be6ba2677 (patch)
tree115bd3170a5caedcb15600d92f4095f844b3a060 /tools
parent1e1d4c262134c2641329a42f262c1687d8113f0e (diff)
parent237cc52ffd58c6f46a68d5662fd69cac05b52ec2 (diff)
Merge pull request #17363 from nicolasnoble/fix-bazel-0.20
Fix bazel 0.20's deprecated workspace imports.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/sanity/check_bazel_workspace.py4
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 35da88d70e..1486d0bd27 100755
--- a/tools/run_tests/sanity/check_bazel_workspace.py
+++ b/tools/run_tests/sanity/check_bazel_workspace.py
@@ -111,6 +111,8 @@ bazel_file += '\ngrpc_deps()\n'
bazel_file += '\ngrpc_test_only_deps()\n'
build_rules = {
'native': eval_state,
+ 'http_archive': lambda **args: eval_state.http_archive(**args),
+ 'load': lambda a, b: None,
}
exec bazel_file in build_rules
for name in _GRPC_DEP_NAMES:
@@ -150,6 +152,8 @@ for name in _GRPC_DEP_NAMES:
names_and_urls_with_overridden_name, overridden_name=name)
rules = {
'native': state,
+ 'http_archive': lambda **args: state.http_archive(**args),
+ 'load': lambda a, b: None,
}
exec bazel_file in rules
assert name not in names_and_urls_with_overridden_name.keys()