Yi Tseng | e671fc9 | 2018-10-31 15:34:30 -0700 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 2 | |
Carmelo Cascone | 81fcfbe | 2019-03-13 15:54:16 -0700 | [diff] [blame] | 3 | GNMI_COMMIT = "33a1865c302903e7a2e06f35960e6bc31e84b9f6" |
| 4 | GNMI_SHA = "cfd412410589e8e019b90681649afdb602f410a0ac67cfa1186a20d73be43e58" |
Yi Tseng | e671fc9 | 2018-10-31 15:34:30 -0700 | [diff] [blame] | 5 | |
| 6 | def generate_gnmi(): |
| 7 | http_archive( |
| 8 | name = "com_github_openconfig_gnmi", |
Carmelo Cascone | 81fcfbe | 2019-03-13 15:54:16 -0700 | [diff] [blame] | 9 | urls = ["https://github.com/openconfig/gnmi/archive/%s.zip" % GNMI_COMMIT], |
Yi Tseng | e671fc9 | 2018-10-31 15:34:30 -0700 | [diff] [blame] | 10 | sha256 = GNMI_SHA, |
| 11 | strip_prefix = "gnmi-%s/proto" % GNMI_COMMIT, |
| 12 | build_file = "//tools/build/bazel:gnmi_BUILD", |
| 13 | ) |