When building against github.com/libp2p/go-libp2p@v0.23.3, I see the following build errors:
# github.com/libp2p/go-libp2p/p2p/transport/quic
/root/go/pkg/mod/github.com/libp2p/go-libp2p@v0.23.3/p2p/transport/quic/tracer_metrics.go:177:9: cannot use &metricsConnTracer{…} (value of type *metricsConnTracer) as type logging.ConnectionTracer in return statement:
*metricsConnTracer does not implement logging.ConnectionTracer (wrong type for BufferedPacket method)
have BufferedPacket(packetType logging.PacketType)
want BufferedPacket(logging.PacketType, "github.com/lucas-clemente/quic-go/internal/protocol".ByteCount)
/root/go/pkg/mod/github.com/libp2p/go-libp2p@v0.23.3/p2p/transport/quic/tracer_metrics.go:197:34: cannot use &metricsConnTracer{} (value of type *metricsConnTracer) as type logging.ConnectionTracer in variable declaration:
*metricsConnTracer does not implement logging.ConnectionTracer (wrong type for BufferedPacket method)
have BufferedPacket(packetType logging.PacketType)
want BufferedPacket(logging.PacketType, "github.com/lucas-clemente/quic-go/internal/protocol".ByteCount)
When I downgrade quic-go to the prior version used by this package (go get github.com/lucas-clemente/quic-go@0.29.1), these errors disappear and I can build just fine. Downgrading go-libp2p down to v0.22.0 has no effect.
Relevant: #1838 updated the quic-go version a couple weeks ago.
When building against
github.com/libp2p/go-libp2p@v0.23.3
, I see the following build errors:When I downgrade quic-go to the prior version used by this package (
go get github.com/lucas-clemente/quic-go@0.29.1
), these errors disappear and I can build just fine. Downgrading go-libp2p down to v0.22.0 has no effect.Relevant: #1838 updated the quic-go version a couple weeks ago.
Version Information