File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ def xds_api_dependencies():
66 "bazel_gazelle" ,
77 locations = REPOSITORY_LOCATIONS ,
88 )
9+ xds_http_archive (
10+ "com_github_bufbuild_buf" ,
11+ locations = REPOSITORY_LOCATIONS ,
12+ build_file_content = BUF_BUILD_CONTENT ,
13+ tags = ["manual" ],
14+ )
915 xds_http_archive (
1016 "com_envoyproxy_protoc_gen_validate" ,
1117 locations = REPOSITORY_LOCATIONS ,
@@ -31,3 +37,16 @@ def xds_api_dependencies():
3137# TODO(roth): Remove once all callers are updated to use the new name.
3238def udpa_api_dependencies ():
3339 xds_api_dependencies ()
40+
41+ BUF_BUILD_CONTENT = """
42+ package(
43+ default_visibility = ["//visibility:public"],
44+ )
45+
46+ filegroup(
47+ name = "buf",
48+ srcs = [
49+ "@com_github_bufbuild_buf//:bin/buf",
50+ ],
51+ )
52+ """
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ REPOSITORY_LOCATIONS = dict(
77 sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c" ,
88 urls = ["https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz" ],
99 ),
10+ com_github_bufbuild_buf = dict (
11+ sha256 = "826ad701db09805eb425723ad3ea0c13ce7ca8353d6a1fb473399db915dafdf9" ,
12+ strip_prefix = "buf" ,
13+ urls = ["https://github.com/bufbuild/buf/releases/download/v1.4.0/buf-Linux-x86_64.tar.gz" ],
14+ ),
1015 com_envoyproxy_protoc_gen_validate = dict (
1116 sha256 = "c695fc5a2e5a1b52904cd8a58ce7a1c3a80f7f50719496fd606e551685c01101" ,
1217 strip_prefix = "protoc-gen-validate-0.6.1" ,
Original file line number Diff line number Diff line change 22
33set -e
44
5+ bazel run @com_github_bufbuild_buf//:bin/buf lint -- --path xds
6+ bazel run @com_github_bufbuild_buf//:bin/buf lint -- --path udpa
7+
58bazel test --config=ci //...
69
710rm -rf go/xds go/udpa
You can’t perform that action at this time.
0 commit comments