Skip to content

Build failure with trillian@v1.7.2 and grpc@v1.79.3 (the latest versions) #3870

@niels-moller

Description

@niels-moller

Hi, I'm trying to update my deps to latest versions, including trillian and grpc. But I get a build failure. To reproduce, create a directory with the two files

go.mod:

module local

go 1.24.0

require (
	github.com/google/trillian v1.7.2
	google.golang.org/grpc v1.79.3
)

tools.go:

//go:build tools

package tools

import (
	_ "github.com/google/trillian/cmd/trillian_log_server"
	_ "google.golang.org/grpc"
)

In this directory, run go mod tidy followed by go install github.com/google/trillian/cmd/trillian_log_server. When I do this, it fails with this compile error:

# github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp
../../../local/go/pkg/mod/github.com/!google!cloud!platform/grpc-gcp-go/grpcgcp@v1.5.2/gcp_balancer.go:40:27: cannot use (*gcpBalancer)(nil) (value of type *gcpBalancer) as balancer.Balancer value in variable declaration: *gcpBalancer does not implement balancer.Balancer (missing method ExitIdle)
../../../local/go/pkg/mod/github.com/!google!cloud!platform/grpc-gcp-go/grpcgcp@v1.5.2/gcp_balancer.go:86:9: cannot use gb (variable of type *gcpBalancer) as balancer.Balancer value in return statement: *gcpBalancer does not implement balancer.Balancer (missing method ExitIdle)

I don't have much clue about what's going on here, but it sounds like some incompatible change to some Balancer interface, probably only indirectly related to trillian. Is this a known problem?

From manual bisect on this example, it seems it works if I back down to grpc v1.73.1, but breaks with grpc v1.74.0.

An advice on how to deal with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions