Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest tagged version still requires a bad grpc module version #117

Closed
dmitshur opened this issue Mar 13, 2019 · 8 comments
Closed

Latest tagged version still requires a bad grpc module version #117

dmitshur opened this issue Mar 13, 2019 · 8 comments

Comments

@dmitshur
Copy link
Contributor

This is a continuation of issue #114.

It has been resolved via PR #115, which has been merged. However, a new tag hasn't been created yet, which means v0.1.5 is still the latest version of zipkin-go, and now that golang.org/x/lint has a go.mod file again, the latest version of zipkin-go is running into the same issue as described in #114.

It can be reproduced with Go 1.12 as follows:

$ cd $(mktemp -d)
$ go mod init m
go: creating new go.mod: module m
$ go get -u github.com/openzipkin/zipkin-go
go: finding github.com/golang/lint latest
go: finding github.com/eapache/go-xerial-snappy latest
go: github.com/golang/[email protected]: parsing go.mod: unexpected module path "golang.org/x/lint"
go: finding honnef.co/go/tools latest
go: finding google.golang.org/genproto latest
go: finding github.com/golang/glog latest
go: finding golang.org/x/sync latest
go: finding golang.org/x/lint latest
go get: error loading module requirements
$ echo $?
1

Please consider making a new tag that includes the fix from PR #115 in order to fix the latest version of zipkin-go. Thanks!

@broady
Copy link

broady commented Mar 14, 2019

/cc @broady

@jcchavezs
Copy link
Contributor

jcchavezs commented Mar 14, 2019 via email

@jcchavezs
Copy link
Contributor

@dmitshur
Copy link
Contributor Author

dmitshur commented Mar 14, 2019

Thank you for doing that!

Unfortunately, while making the new tag helped, it wasn't sufficient to resolve the issue. The bad grpc v1.16.0 still ends up being in the build list (but now for different reasons):

$ cd $(mktemp -d)
$ go mod init m
go: creating new go.mod: module m
$ go get -u github.com/openzipkin/zipkin-go
go: finding github.com/openzipkin/zipkin-go v0.1.6
...
go: finding google.golang.org/grpc v1.16.0
...
go: github.com/golang/[email protected]: parsing go.mod: unexpected module path "golang.org/x/lint"
...
go get: error loading module requirements

I'm finding the following reasons for grpc v1.16.0 showing up:

  1. Latest pseudo-version of golang.org/x/build module lists it as an indirect require:

    https://github.com/golang/build/blob/2deca50d970debd63fb366d0b33900f02482af05/go.mod#L34

    This is tracked by x/build: update dependencies in go.mod golang/go#30833 and will be quick to resolve.

  2. Latest version of module github.com/googleapis/gax-go/v2 is version v2.0.3, and it requires bad grpc version directly.

    This is tracked by tag a new version googleapis/gax-go#82. /cc @broady

    Will need to see if the latest version of any other module requires github.com/googleapis/gax-go/[email protected]; if so, that'll need to be fixed too.

  3. Latest pseudo-version of module google.golang.org/genproto, including pseudo-verisions v0.0.0-20181202183823-bd91e49a0898 and v0.0.0-20181219182458-5a97ab628bfb, are affected.

    This is tracked by Can't use go get -u on this module with its current latest pseudo-version googleapis/go-genproto#151 and needs more investigation.

Those 3 are the only reasons I'm spotting at this time. Will update this as progress is made on resolving them. /cc @bcmills @broady @heschik

@jeanbza
Copy link

jeanbza commented Mar 14, 2019

cc @dfawley

@dmitshur
Copy link
Contributor Author

There's been progress made. Right now, I think one of the next blocking pieces to resolve is googleapis/google-api-go-client#342 and census-instrumentation/opencensus-go#1064 (comment).

Once those are resolved, the latest version of cloud.google.com/go may be resolved, which is required indirectly by zipkin-go. I'll post update as progress happens.

@jeanbza
Copy link

jeanbza commented Apr 11, 2019

We've resolved googleapis/google-api-go-client#342 and census-instrumentation/opencensus-go#1064 (comment).

@dmitshur
Copy link
Contributor Author

dmitshur commented May 9, 2019

All of the reasons this issue had been triggering have been resolved by now, and so this issue is fixed. It's possible to use go get -u with the latest version of this module successfully now. Thanks everyone!

@dmitshur dmitshur closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants