lileio / lile

Easily generate gRPC services in Go ⚡️
MIT License
1.51k stars 88 forks source link

GO111MODULE=on go get -u github.com/lileio/lile/... fails #72

Closed jason-riddle closed 3 years ago

jason-riddle commented 3 years ago

Problem: Running GO111MODULE=on go get -u github.com/lileio/lile/... fails with:

go get: github.com/openzipkin/zipkin-go-opentracing@v0.3.4 updating to
    github.com/openzipkin/zipkin-go-opentracing@v0.4.5: parsing go.mod:
    module declares its path as: github.com/openzipkin-contrib/zipkin-go-opentracing
            but was required as: github.com/openzipkin/zipkin-go-opentracing

Solutions:

Short Term Fix: I haven't found one, adding the following to go.mod

replace (
    github.com/openzipkin/zipkin-go-opentracing v0.3.4 => github.com/openzipkin-contrib/zipkin-go-opentracing v0.3.4
    github.com/openzipkin/zipkin-go-opentracing v0.4.3 => github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.3
    github.com/openzipkin/zipkin-go-opentracing v0.4.5 => github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5
)

leads to the following new error

go: github.com/openzipkin-contrib/zipkin-go-opentracing@v0.4.5 used for two different module paths (github.com/openzipkin-contrib/zipkin-go-opentracing and github.com/openzipkin/zipkin-go-opentracing)

Longer Term Fix: