[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grpc transition



Hi Simon,

On Sun, 2024-02-18 at 20:42 +0100, Simon Josefsson wrote:
> Shengjing Zhu <zhsj@debian.org> writes:
> 
> > My last attempt for the grpc-go transition is stuck at the protobuf things.
> > One thing that might help is gprc-go is finally going to use the new
> > protobuf library, https://github.com/grpc/grpc-go/pull/6961
> > So we could decouple the grpc-go transition from the protobuf things.
> 
> Are you saying we should apply that patch to grpc-go and upload to
> experimental, and hope that will help resolve the FTBFS in reverse
> dependencies?  Do we need to change some Build-Depends as well?  It
> seems grpc 1.60 has these proto-related Build-Depends:
> 
>                golang-github-golang-protobuf-1-5-dev,
>                golang-google-genproto-dev,
>                golang-google-protobuf-dev,
>                protobuf-compiler (>= 3.11.4~),
>                protoc-gen-go,

This patch (which is now merged and included in >=1.62.0) just removes the requirement for the
legacy golang-github-golang-protobuf-1-5-dev dependency. This should fix dependency problems where
there was conflict between the 1-5 and 1-3 variations.

> Not all FTBFS errors seems related to protobuf, any ideas on the error
> below?  Or is this a protobuf related error?

This error is due to outdated golang-google-genproto package, which itself is a whole other rabbit
hole (involving cyclical dependencies).

> https://ci.debian.net/packages/g/golang-github-sercand-kuberesolver/unstable/amd64/42994661/
> 
>  44s github.com/sercand/kuberesolver
>  44s # github.com/sercand/kuberesolver
>  44s src/github.com/sercand/kuberesolver/builder.go:79:23: target.Authority undefined (type resolver.Target has no field or method Authority)
>  44s src/github.com/sercand/kuberesolver/builder.go:81:12: invalid operation: end == "" (mismatched types func() string and untyped string)
>  44s src/github.com/sercand/kuberesolver/builder.go:82:16: target.Authority undefined (type resolver.Target has no field or method Authority)
>  44s src/github.com/sercand/kuberesolver/builder.go:86:12: invalid operation: end == "" (mismatched types func() string and untyped string)
>  44s src/github.com/sercand/kuberesolver/builder.go:91:23: cannot use end (variable of type func() string) as string value in argument to strings.LastIndex
>  44s src/github.com/sercand/kuberesolver/builder.go:92:10: cannot use end (variable of type func() string) as string value in assignment
>  44s src/github.com/sercand/kuberesolver/builder.go:97:39: cannot use end (variable of type func() string) as string value in argument to net.SplitHostPort
>  44s src/github.com/sercand/kuberesolver/builder.go:226:5: unknown field Type in struct literal of type resolver.Address
>  44s src/github.com/sercand/kuberesolver/builder.go:226:26: undefined: resolver.Backend

Kind regards,
Maytham


Reply to: