From 9ffe79bc2a5ce30bbc33a0a54ccf7963f3582a79 Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Tue, 30 May 2023 13:02:57 +0000 Subject: [PATCH] tooling: include protoc-gen-jsonschema repository (#27661) Signed-off-by: norbjd Mirrored from https://github.com/envoyproxy/envoy @ 86537d1640e47b386e2f466e58931ccfa8aca770 --- bazel/repositories.bzl | 4 ++++ bazel/repository_locations.bzl | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index b49db8c5..8142c827 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -49,6 +49,10 @@ def api_dependencies(): build_file_content = BUF_BUILD_CONTENT, ) + external_http_archive( + name = "com_github_chrusty_protoc_gen_jsonschema", + ) + PROMETHEUSMETRICS_BUILD_CONTENT = """ load("@envoy_api//bazel:api_build_system.bzl", "api_cc_py_proto_library") load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl index c259e363..670c0ad4 100644 --- a/bazel/repository_locations.bzl +++ b/bazel/repository_locations.bzl @@ -140,4 +140,15 @@ REPOSITORY_LOCATIONS_SPEC = dict( license = "Apache-2.0", license_url = "https://github.com/bufbuild/buf/blob/v{version}/LICENSE", ), + com_github_chrusty_protoc_gen_jsonschema = dict( + project_name = "protoc-gen-jsonschema", + project_desc = "Protobuf to JSON-Schema compiler", + project_url = "https://github.com/norbjd/protoc-gen-jsonschema", + strip_prefix = "protoc-gen-jsonschema-{version}", + sha256 = "ba3e313b10a1b50a6c1232d994c13f6e23d3669be4ae7fea13762f42bb3b2abc", + version = "7680e4998426e62b6896995ff73d4d91cc5fb13c", + urls = ["https://github.com/norbjd/protoc-gen-jsonschema/archive/{version}.zip"], + use_category = ["build"], + release_date = "2023-05-30", + ), )