Skip to content

Commit

Permalink
fix: bump service config proto dependency and fix main
Browse files Browse the repository at this point in the history
* Bump to latest buf service config in hopes of avoiding issues with
  recent breaking change
* Type cast to correct serviceconfig library on code generation
  • Loading branch information
alethenorio committed Oct 3, 2022
1 parent 92e9e3e commit 1b839d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/protoc-gen-go-grpc-service-config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (p *plugin) generateFromProto() error {
defaultServiceConfig := proto.GetExtension(
file.Proto.GetOptions(),
serviceconfigv1.E_DefaultServiceConfig,
).(*service_config.ServiceConfig)
).(*serviceconfigv1.ServiceConfig)
if defaultServiceConfig == nil {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module go.einride.tech/grpc-service-config
go 1.18

require (
go.buf.build/protocolbuffers/go/einride/grpc-service-config v1.2.1
go.buf.build/protocolbuffers/go/einride/grpc-service-config v1.3.3
go.buf.build/protocolbuffers/go/grpc/grpc v1.3.54
google.golang.org/grpc v1.49.0
google.golang.org/protobuf v1.28.1
Expand Down
12 changes: 2 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,15 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
go.buf.build/protocolbuffers/go/cncf/xds v1.2.14/go.mod h1:hq9vhcZd4ZTK2iCNk4F8oyZAxq1iz/LJUQUiNjF8gZQ=
go.buf.build/protocolbuffers/go/cncf/xds v1.3.14/go.mod h1:Z50f1jgotx7d6XbwehrOwMG86nCJsKjLeorgJEM+I9E=
go.buf.build/protocolbuffers/go/einride/grpc-service-config v1.2.1 h1:QqsSxCQvwCHPWIUCyNtpI+A4tD4+V00BgdcnOhoXNbw=
go.buf.build/protocolbuffers/go/einride/grpc-service-config v1.2.1/go.mod h1:kgQcZlW4PmcEACPrzYB5NGsdzqvNd4J9bn5fMjv//wo=
go.buf.build/protocolbuffers/go/envoyproxy/envoy v1.2.161/go.mod h1:yZ3Q0ckzdHykCgNkMsFgLqBUINk15M+fG2HB8rKPwn0=
go.buf.build/protocolbuffers/go/einride/grpc-service-config v1.3.3 h1:o7VOQ1GUysSVbhxrAUqmqTSuVPoHY1uYkx88VIDfEZ8=
go.buf.build/protocolbuffers/go/einride/grpc-service-config v1.3.3/go.mod h1:6IB/7iOFF7EYvb0kxe2a8AWjVqIsxFbJqgdAGOUX3uA=
go.buf.build/protocolbuffers/go/envoyproxy/envoy v1.3.161/go.mod h1:dw5tR17g9yBFLLfF56OkEGoi+rP9IO4kknc6pHeQpF8=
go.buf.build/protocolbuffers/go/envoyproxy/protoc-gen-validate v1.2.6/go.mod h1:rFeh5GJ10STGBM5uR3XCCgIPQAoOHxKgoAdeLRWtvHU=
go.buf.build/protocolbuffers/go/envoyproxy/protoc-gen-validate v1.3.6/go.mod h1:d95oMUkjcqYMrNwq1r4m7bvTwC/OzVep/E1chKY1y9Q=
go.buf.build/protocolbuffers/go/grpc/grpc v1.2.54/go.mod h1:llaEv0/K+Zy3jdYfneJw3pJJsgvYyw7v9bjyso2VdT8=
go.buf.build/protocolbuffers/go/grpc/grpc v1.3.54 h1:RZb9crKb5F6pFITqURg/Mrg0Tp6a2PLdyj9WC0JTS04=
go.buf.build/protocolbuffers/go/grpc/grpc v1.3.54/go.mod h1:lvE+xBSTO2Gi5kXnBVQCQ70y8JhoRX3SX+GOB+Dfk+s=
go.buf.build/protocolbuffers/go/opencensus/opencensus v1.2.4/go.mod h1:fZwrLuqDEQM75QwCWh2NESbiB/aE/RyYREab/5rQEOs=
go.buf.build/protocolbuffers/go/opencensus/opencensus v1.3.4/go.mod h1:kZ799PxXabA0UHqT2w3M75m/rp2H1D+A+X2mZhxsRf8=
go.buf.build/protocolbuffers/go/opentelemetry/opentelemetry v1.2.39/go.mod h1:kchE+AygbBgTRXUNtLGxZnbMBv7iFN1z3L2jZaMeqZo=
go.buf.build/protocolbuffers/go/opentelemetry/opentelemetry v1.3.39/go.mod h1:hBg9HPD++KMkLNUutYYryNlJWIJCYSaLFU8zIdTcTp4=
go.buf.build/protocolbuffers/go/prometheus/client-model v1.2.1/go.mod h1:34sL1yXFVbViH1alMgoGlmAJT5Io7SuUNCJvhh5wklU=
go.buf.build/protocolbuffers/go/prometheus/client-model v1.3.1/go.mod h1:712s761lHjxv873ah4Tqrnuyk6NIGAF/skffLwzzbpE=
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down Expand Up @@ -142,7 +135,6 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down

0 comments on commit 1b839d3

Please sign in to comment.