Skip to content

Commit bd1986b

Browse files
committed
go.mod: update grpc-gateway to the v2
Attempting to build grpc-gateway v1 using the latest version of go_rules fails due to a breaking change in how go_rules resolves googleapi protobufs (https://github.com/bazelbuild/rules_go/releases/tag/v0.41.0). Version v2.15.2 was chosen becasue it is a relatively recent version that occurs before the breaking change was fixed in grpc-gateway. This allows cockroachdb to import the change without bumping the io_bazel_rules_go version. Other repositories that want to bump their io_bazel_rules_go can explicitly depend on a version of grpc-gatewy that includes the bazel fix.
1 parent 302c9ad commit bd1986b

File tree

4 files changed

+54
-47
lines changed

4 files changed

+54
-47
lines changed

go.mod

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,37 @@ require (
1313
github.com/dustin/go-humanize v1.0.0
1414
github.com/gogo/protobuf v1.3.2
1515
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551
16-
github.com/google/go-cmp v0.5.8
17-
github.com/grpc-ecosystem/grpc-gateway v1.16.0
16+
github.com/google/go-cmp v0.5.9
17+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
1818
github.com/lib/pq v1.10.6
1919
github.com/pierrre/geohash v1.0.0
2020
github.com/sasha-s/go-deadlock v0.3.1
2121
github.com/spf13/pflag v1.0.5
2222
github.com/stretchr/testify v1.7.0
2323
github.com/twpayne/go-geom v1.4.1
24-
golang.org/x/text v0.3.7
25-
golang.org/x/tools v0.2.0
24+
golang.org/x/text v0.12.0
25+
golang.org/x/tools v0.6.0
2626
)
2727

2828
require (
2929
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f // indirect
3030
github.com/davecgh/go-spew v1.1.1 // indirect
3131
github.com/getsentry/sentry-go v0.12.0 // indirect
32-
github.com/golang/protobuf v1.5.2 // indirect
33-
github.com/kr/pretty v0.3.0 // indirect
32+
github.com/golang/protobuf v1.5.3 // indirect
33+
github.com/kr/pretty v0.3.1 // indirect
3434
github.com/kr/text v0.2.0 // indirect
3535
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
3636
github.com/pkg/errors v0.9.1 // indirect
3737
github.com/pmezard/go-difflib v1.0.0 // indirect
38-
github.com/rogpeppe/go-internal v1.8.1 // indirect
38+
github.com/rogpeppe/go-internal v1.9.0 // indirect
3939
github.com/twpayne/go-kml v1.5.2 // indirect
40-
golang.org/x/mod v0.6.0 // indirect
41-
golang.org/x/sys v0.1.0 // indirect
42-
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84 // indirect
43-
google.golang.org/grpc v1.38.0 // indirect
44-
google.golang.org/protobuf v1.26.0 // indirect
45-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
40+
golang.org/x/mod v0.8.0 // indirect
41+
golang.org/x/net v0.14.0 // indirect
42+
golang.org/x/sys v0.11.0 // indirect
43+
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
44+
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
45+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
46+
google.golang.org/grpc v1.57.0 // indirect
47+
google.golang.org/protobuf v1.31.0 // indirect
48+
gopkg.in/yaml.v3 v3.0.1 // indirect
4649
)

0 commit comments

Comments
 (0)