-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to google.golang.org/grpc@1.35.0
#12636
Commits on Jan 20, 2021
-
(Temporarily) removing
indirect
dependencies ingo mod
.This is intended so that `go mod tidy` can be used to re-generate imports (to prepare for an update of `google.golang.org/grpc`.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for f790eee - Browse repository at this point
Copy the full SHA f790eeeView commit details -
Directly vendoring in
grpc/naming
types to drop the dependency.The official recommendation is to move to `google.golang.org/grpc/resolver` but this is not exactly a drop-in replacement.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 5cfaeaf - Browse repository at this point
Copy the full SHA 5cfaeafView commit details -
Using vendored
client/v3/grpcnaming
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 061f660 - Browse repository at this point
Copy the full SHA 061f660View commit details -
Updating to
google.golang.org/grpc@1.35.0
in allgo.mod
files.This is because the `grpc/naming` breaking change happened in `v1.30.0` (i.e. we need to get past `v1.29.1`). See: https://github.com/grpc/grpc-go/releases/tag/v1.30.0
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for eb1cc38 - Browse repository at this point
Copy the full SHA eb1cc38View commit details -
Updating interfaces in
client/v3/balancer/picker
.The two implementations updated satisfy `(google.golang.org/grpc/balancer).Picker`, see the history of this interface: - https://pkg.go.dev/google.golang.org/grpc@v1.29.1/balancer#Picker - https://pkg.go.dev/google.golang.org/grpc@v1.30.0/balancer#Picker - https://pkg.go.dev/google.golang.org/grpc@v1.35.0/balancer#Picker
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 2780f25 - Browse repository at this point
Copy the full SHA 2780f25View commit details -
Updating interfaces in
client/v3/balancer
.The `baseBalancer` struct satisfies `(google.golang.org/grpc/balancer).Balancer`, see the history of this interface: - https://pkg.go.dev/google.golang.org/grpc@v1.29.1/balancer#Balancer - https://pkg.go.dev/google.golang.org/grpc@v1.30.0/balancer#Balancer - https://pkg.go.dev/google.golang.org/grpc@v1.35.0/balancer#Balancer
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 4ef628f - Browse repository at this point
Copy the full SHA 4ef628fView commit details -
Danny Hermes committed
Jan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for c1b82bb - Browse repository at this point
Copy the full SHA c1b82bbView commit details -
See etcd-io#12564 (comment) for how I determined which order to visit packages in.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 9f63964 - Browse repository at this point
Copy the full SHA 9f63964View commit details -
Re-ran
go mod tidy
intools/mod/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 1141d4c - Browse repository at this point
Copy the full SHA 1141d4cView commit details -
Re-ran
go mod tidy
inclient/v2/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 79b2c3a - Browse repository at this point
Copy the full SHA 79b2c3aView commit details -
Re-ran
go mod tidy
inclient/v3/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 04eb8b6 - Browse repository at this point
Copy the full SHA 04eb8b6View commit details -
Danny Hermes committed
Jan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for e51f86c - Browse repository at this point
Copy the full SHA e51f86cView commit details -
Re-ran
go mod tidy
inserver/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 91b12f9 - Browse repository at this point
Copy the full SHA 91b12f9View commit details -
Re-ran
go mod tidy
inetcdctl/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 41d0e29 - Browse repository at this point
Copy the full SHA 41d0e29View commit details -
Danny Hermes committed
Jan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for d4c917e - Browse repository at this point
Copy the full SHA d4c917eView commit details -
Re-ran
go mod tidy
in root package.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 4a5ad64 - Browse repository at this point
Copy the full SHA 4a5ad64View commit details -
Updating
genproto
dependency inapi
.This is to address CI failure ``` FAIL: inconsistent versions for depencency: google.golang.org/genproto - google.golang.org/genproto@v0.0.0-20200526211855-cb27e3aa2013 from: go.etcd.io/etcd/api/v3 - google.golang.org/genproto@v0.0.0-20200806141610-86f49bd18e98 from: go.etcd.io/etcd/server/v3 FAIL: inconsistent dependencies FAIL: 'dep' failed at Wed Jan 20 21:00:57 UTC 2021 ```
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 284058b - Browse repository at this point
Copy the full SHA 284058bView commit details -
Rolling back to
google.golang.org/grpc@1.30.0
and `github.com/golan……g/protobuf@v1.3.3`. Done via: ``` git grep -l 'google.golang.org/grpc v1.35.0' -- '*go.mod' | xargs sed -i '' s/'google.golang.org\/grpc v1.35.0'/'google.golang.org\/grpc v1.30.0'/g git grep -l 'github.com/golang/protobuf v1.4.2' -- '*go.mod' | xargs sed -i '' s/'github.com\/golang\/protobuf v1.4.2'/'github.com\/golang\/protobuf v1.3.3'/g ```
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 1b59112 - Browse repository at this point
Copy the full SHA 1b59112View commit details -
This included a `replace` directive for the `protobuf` version.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for f8e52c7 - Browse repository at this point
Copy the full SHA f8e52c7View commit details -
Danny Hermes committed
Jan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 5e45a43 - Browse repository at this point
Copy the full SHA 5e45a43View commit details -
Re-ran
go mod tidy
inclient/v2/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 9dbf34c - Browse repository at this point
Copy the full SHA 9dbf34cView commit details -
Re-ran
go mod tidy
inclient/v3/
.Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 6b44f15 - Browse repository at this point
Copy the full SHA 6b44f15View commit details -
Danny Hermes committed
Jan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 8220f16 - Browse repository at this point
Copy the full SHA 8220f16View commit details -
Re-ran
go mod tidy
inserver/
.This included a `replace` directive for the `protobuf` version.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 60174e7 - Browse repository at this point
Copy the full SHA 60174e7View commit details -
Re-ran
go mod tidy
inetcdctl/
.This included a `replace` directive for the `grpc` version.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 7d63cb6 - Browse repository at this point
Copy the full SHA 7d63cb6View commit details -
This included a `replace` directive for the `grpc` and `protobuf` versions.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for 7607937 - Browse repository at this point
Copy the full SHA 7607937View commit details -
Re-ran
go mod tidy
in root directory.This included a `replace` directive for the `grpc` version.
Danny Hermes committedJan 20, 2021 Configuration menu - View commit details
-
Copy full SHA for b7f8d58 - Browse repository at this point
Copy the full SHA b7f8d58View commit details