From 22dfd557b9c1e00744172309ee17280e7ecdb80e Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 20 May 2024 08:14:52 +0200 Subject: [PATCH] grpc-httpjson-transcoding@0.0.0-20230607-ff41eb3 --- .../0.0.0-20230607-ff41eb3/MODULE.bazel | 63 ++++++++++++++++++ .../patches/grpc-httpjson-transcoding.patch | 29 ++++++++ .../patches/module_dot_bazel.patch | 66 +++++++++++++++++++ .../0.0.0-20230607-ff41eb3/presubmit.yml | 17 +++++ .../0.0.0-20230607-ff41eb3/source.json | 10 +++ .../grpc-httpjson-transcoding/metadata.json | 16 +++++ 6 files changed, 201 insertions(+) create mode 100644 modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/MODULE.bazel create mode 100644 modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/grpc-httpjson-transcoding.patch create mode 100644 modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/module_dot_bazel.patch create mode 100644 modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/presubmit.yml create mode 100644 modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/source.json create mode 100644 modules/grpc-httpjson-transcoding/metadata.json diff --git a/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/MODULE.bazel b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/MODULE.bazel new file mode 100644 index 00000000000..f51ebf9943c --- /dev/null +++ b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/MODULE.bazel @@ -0,0 +1,63 @@ +module( + name = "grpc-httpjson-transcoding", + version = "0.0.0-20230607-ff41eb3", + compatibility_level = 1, +) + +bazel_dep( + name = "abseil-cpp", + version = "20240116.2", + repo_name = "com_google_absl", +) +bazel_dep( + name = "googletest", + version = "1.14.0.bcr.1", + repo_name = "com_google_googletest", + dev_dependency = True, +) +bazel_dep( + name = "google_benchmark", + version = "1.8.3", + repo_name = "com_google_benchmark", + dev_dependency = True, +) +bazel_dep( + name = "nlohmann_json", + version = "3.11.3", + repo_name = "com_github_nlohmann_json", +) +bazel_dep( + name = "proto-converter", + version = "0.0.0-20230607-d77ff30", + repo_name = "com_google_protoconverter", +) +bazel_dep( + name = "protobuf", + version = "26.0.bcr.1", + repo_name = "com_google_protobuf", +) +bazel_dep( + name = "rules_cc", + version = "0.0.9", +) +bazel_dep( + name = "rules_fuzzing", + version = "0.5.2", + dev_dependency = True, +) +bazel_dep( + name = "rules_proto", + version = "5.3.0-21.7", +) +bazel_dep( + name = "zlib", + version = "1.2.13", +) + +# -- bazel_dep definitions -- # + +non_module_deps = use_extension("//:extensions.bzl", "non_module_deps") +use_repo(non_module_deps, "com_google_googleapis") + +googleapis_ext = use_extension("//:googleapis_ext.bzl", "googleapis_ext") +use_repo(googleapis_ext, "com_google_googleapis_imports") diff --git a/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/grpc-httpjson-transcoding.patch b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/grpc-httpjson-transcoding.patch new file mode 100644 index 00000000000..a7cb537a719 --- /dev/null +++ b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/grpc-httpjson-transcoding.patch @@ -0,0 +1,29 @@ +diff --git a/extensions.bzl b/extensions.bzl +new file mode 100644 +index 0000000..8d8228e +--- /dev/null ++++ b/extensions.bzl +@@ -0,0 +1,11 @@ ++load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ++ ++def _non_module_deps_impl(_ctx): ++ http_archive( ++ name = "com_google_googleapis", ++ url = "https://github.com/googleapis/googleapis/archive/1d5522ad1056f16a6d593b8f3038d831e64daeea.tar.gz", ++ sha256 = "cd13e547cffaad217c942084fd5ae0985a293d0cce3e788c20796e5e2ea54758", ++ strip_prefix = "googleapis-1d5522ad1056f16a6d593b8f3038d831e64daeea", ++ ) ++ ++non_module_deps = module_extension(implementation = _non_module_deps_impl) +diff --git a/googleapis_ext.bzl b/googleapis_ext.bzl +new file mode 100644 +index 0000000..f3c1e15 +--- /dev/null ++++ b/googleapis_ext.bzl +@@ -0,0 +1,6 @@ ++load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") ++ ++googleapis_ext = module_extension(implementation = lambda x: switched_rules_by_language( ++ name = "com_google_googleapis_imports", ++ cc = True, ++)) diff --git a/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/module_dot_bazel.patch b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..d3802a7d85e --- /dev/null +++ b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/patches/module_dot_bazel.patch @@ -0,0 +1,66 @@ +--- a/MODULE.bazel ++++ a/MODULE.bazel +@@ -0,0 +1,63 @@ ++module( ++ name = "grpc-httpjson-transcoding", ++ version = "0.0.0-20230607-ff41eb3", ++ compatibility_level = 1, ++) ++ ++bazel_dep( ++ name = "abseil-cpp", ++ version = "20240116.2", ++ repo_name = "com_google_absl", ++) ++bazel_dep( ++ name = "googletest", ++ version = "1.14.0.bcr.1", ++ repo_name = "com_google_googletest", ++ dev_dependency = True, ++) ++bazel_dep( ++ name = "google_benchmark", ++ version = "1.8.3", ++ repo_name = "com_google_benchmark", ++ dev_dependency = True, ++) ++bazel_dep( ++ name = "nlohmann_json", ++ version = "3.11.3", ++ repo_name = "com_github_nlohmann_json", ++) ++bazel_dep( ++ name = "proto-converter", ++ version = "0.0.0-20230607-d77ff30", ++ repo_name = "com_google_protoconverter", ++) ++bazel_dep( ++ name = "protobuf", ++ version = "26.0.bcr.1", ++ repo_name = "com_google_protobuf", ++) ++bazel_dep( ++ name = "rules_cc", ++ version = "0.0.9", ++) ++bazel_dep( ++ name = "rules_fuzzing", ++ version = "0.5.2", ++ dev_dependency = True, ++) ++bazel_dep( ++ name = "rules_proto", ++ version = "5.3.0-21.7", ++) ++bazel_dep( ++ name = "zlib", ++ version = "1.2.13", ++) ++ ++# -- bazel_dep definitions -- # ++ ++non_module_deps = use_extension("//:extensions.bzl", "non_module_deps") ++use_repo(non_module_deps, "com_google_googleapis") ++ ++googleapis_ext = use_extension("//:googleapis_ext.bzl", "googleapis_ext") ++use_repo(googleapis_ext, "com_google_googleapis_imports") diff --git a/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/presubmit.yml b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/presubmit.yml new file mode 100644 index 00000000000..2b744f11aea --- /dev/null +++ b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@grpc-httpjson-transcoding//src/...' diff --git a/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/source.json b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/source.json new file mode 100644 index 00000000000..44257f90f66 --- /dev/null +++ b/modules/grpc-httpjson-transcoding/0.0.0-20230607-ff41eb3/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/grpc-ecosystem/grpc-httpjson-transcoding/archive/ff41eb3fc9209e6197595b54f7addfa244c0bdb6.tar.gz", + "integrity": "sha256-3qZrPS38FQNzaX4lsTJ4d+C3SA3Cus//Hj/XqgCxJ5A=", + "strip_prefix": "grpc-httpjson-transcoding-ff41eb3fc9209e6197595b54f7addfa244c0bdb6", + "patches": { + "grpc-httpjson-transcoding.patch": "sha256-j0m2H8WbAUMzFH1AkwcLP8zVmcvjMgRtM20IPJk0gno=", + "module_dot_bazel.patch": "sha256-9zaHfn3zheZzU3l0w/N2r0p+BsC7wTa/jCLeMcwLnYY=" + }, + "patch_strip": 1 +} diff --git a/modules/grpc-httpjson-transcoding/metadata.json b/modules/grpc-httpjson-transcoding/metadata.json new file mode 100644 index 00000000000..b14dfe04531 --- /dev/null +++ b/modules/grpc-httpjson-transcoding/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/grpc-ecosystem/grpc-httpjson-transcoding", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:grpc-ecosystem/grpc-httpjson-transcoding" + ], + "versions": [ + "0.0.0-20230607-ff41eb3" + ], + "yanked_versions": {} +}