Skip to content

Commit 1310445

Browse files
authored
Add grpc-gateway 2.26.1 (#4409)
We also need the older version since we are not yet ready to update some transitive dependencies on our side.
1 parent bc89db0 commit 1310445

File tree

5 files changed

+111
-0
lines changed

5 files changed

+111
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
module(
2+
name = "grpc_ecosystem_grpc_gateway",
3+
version = "2.26.1",
4+
)
5+
6+
# Bazel Central Registry modules.
7+
bazel_dep(name = "bazel_features", version = "1.25.0")
8+
bazel_dep(name = "rules_license", version = "1.0.0")
9+
bazel_dep(name = "rules_python", version = "1.1.0")
10+
bazel_dep(name = "rules_proto", version = "7.1.0")
11+
bazel_dep(name = "rules_go", version = "0.52.0", repo_name = "io_bazel_rules_go")
12+
bazel_dep(name = "gazelle", version = "0.42.0", repo_name = "bazel_gazelle")
13+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
14+
bazel_dep(name = "protobuf", version = "29.3", repo_name = "com_google_protobuf")
15+
bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a")
16+
17+
# This is required as a transitive dependency and not directly needed by this module.
18+
# We have this version pinned to solve for differences in the MODULE.bazel.lock file
19+
# when running CI.
20+
bazel_dep(name = "rules_rust", version = "0.57.1")
21+
22+
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
23+
go_sdk.download(version = "1.22.7")
24+
25+
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
26+
go_deps.from_file(go_mod = ":go.mod")
27+
28+
# These dependencies are required by `.proto` files but are not captured in `go.mod`,
29+
# so they have to explicitly be made known to Gazelle.
30+
go_deps.module(
31+
path = "google.golang.org/grpc/cmd/protoc-gen-go-grpc",
32+
sum = "h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA=",
33+
version = "v1.3.0",
34+
)
35+
go_deps.module(
36+
path = "github.com/golang/protobuf",
37+
sum = "h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=",
38+
version = "v1.5.4",
39+
)
40+
go_deps.module(
41+
path = "github.com/bazelbuild/buildtools/v7",
42+
sum = "h1:BRlRwQ/4rd608QvjsM9HSzBLLM1nXyzHaDzdkBAyDKk=",
43+
version = "v7.3.1",
44+
)
45+
go_deps.module(
46+
path = "golang.org/x/tools",
47+
sum = "h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=",
48+
version = "v0.21.1-0.20240508182429-e35e4ccd0d2d",
49+
)
50+
use_repo(
51+
go_deps,
52+
"com_github_antihax_optional",
53+
"com_github_bazelbuild_buildtools_v7",
54+
"com_github_golang_protobuf",
55+
"com_github_google_go_cmp",
56+
"com_github_rogpeppe_fastuuid",
57+
"in_gopkg_yaml_v3",
58+
"org_golang_google_genproto_googleapis_api",
59+
"org_golang_google_genproto_googleapis_rpc",
60+
"org_golang_google_grpc",
61+
"org_golang_google_grpc_cmd_protoc_gen_go_grpc",
62+
"org_golang_google_protobuf",
63+
"org_golang_x_oauth2",
64+
"org_golang_x_text",
65+
"org_golang_x_tools",
66+
)
67+
68+
non_module_deps = use_extension(":non_module_deps.bzl", "non_module_deps")
69+
use_repo(
70+
non_module_deps,
71+
"com_github_bazelbuild_buildtools",
72+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- MODULE.bazel
2+
+++ MODULE.bazel
3+
@@ -1,8 +1,6 @@
4+
module(
5+
name = "grpc_ecosystem_grpc_gateway",
6+
- # TODO: Change this to the actual version on each release.
7+
- # This can wait until we publish this project on the Bazel registry.
8+
- version = "0.0.0",
9+
+ version = "2.26.1",
10+
)
11+
12+
# Bazel Central Registry modules.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2204
5+
- macos
6+
- macos_arm64
7+
- windows
8+
bazel:
9+
- 7.x
10+
- 8.x
11+
tasks:
12+
verify_targets:
13+
name: Verify build targets
14+
platform: ${{ platform }}
15+
bazel: ${{ bazel }}
16+
build_targets:
17+
- '@grpc_ecosystem_grpc_gateway//...'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/grpc-ecosystem/grpc-gateway/archive/refs/tags/v2.26.1.tar.gz",
3+
"integrity": "sha256-L1trnG65H+kpqK0PX6wGrZJ0vA+XrdoDo5+E2Pn3wHA=",
4+
"strip_prefix": "grpc-gateway-2.26.1",
5+
"patches": {
6+
"module_dot_bazel.patch": "sha256-IyHgNonfL+/gzF48gjeG/nc+vwrJkmvvu5rb8up00+8="
7+
},
8+
"patch_strip": 0
9+
}

modules/grpc_ecosystem_grpc_gateway/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"github:grpc-ecosystem/grpc-gateway"
1111
],
1212
"versions": [
13+
"2.26.1",
1314
"2.26.3"
1415
],
1516
"yanked_versions": {}

0 commit comments

Comments
 (0)