Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Cannot Build With Jaeger Exporter Due To Thrift Vanity #993

Closed
marwan-at-work opened this issue Dec 2, 2018 · 14 comments
Closed

Cannot Build With Jaeger Exporter Due To Thrift Vanity #993

marwan-at-work opened this issue Dec 2, 2018 · 14 comments

Comments

@marwan-at-work
Copy link

marwan-at-work commented Dec 2, 2018

Describe the bug
It seems that one of Jaeger's import paths use vanity imports and the live server is not working as expected: curl -sSL git.apache.org/thrift.git/lib/go/thrift?go-get=1 returns a 302 to https://github.com/apache/thrift.git/lib/go/thrift?go-get=1 which then returns a 404.

To Reproduce
Steps to reproduce the behavior:

  1. Make sure you don't have thrift in your local cache (vendor, gopath, or pkg/mod)
  2. Build a new project with a Jaeger exporter

PS. The thrift repo on Github does not have an issue tracker...so I reported here :)

@zerok
Copy link

zerok commented Feb 27, 2019

I'm currently running into a possibly related issue when using an Athens server as GOPROXY:

go: verifying git.apache.org/[email protected]: checksum mismatch
	downloaded: h1:ROdxmPITVHDxX22/qs2j1XXyJ/riQh8MB4UeWA4ZfVw=
	go.sum:     h1:GnKpWvJXysBGdcWMEibN//UeRRJeLDUgsXjKXjagFLg=

Would it perhaps make sense to depend directly on the Github URL inside go.mod (e.g. using something like replace definition)?

@jbub
Copy link

jbub commented Mar 2, 2019

Yes i am currently not able to use opencensus-go with Go modules because of this.

@odeke-em
Copy link
Member

odeke-em commented Mar 2, 2019

@zerok @marwan-at-work what versions of Go are y'all using? If using Go1.11.2 and earlier, please upgrade to Go1.11.4.

@jbub
Copy link

jbub commented Mar 2, 2019

I am on go version go1.12 darwin/amd64

@jbub
Copy link

jbub commented Mar 2, 2019

I made a reproducer repo https://github.com/jbub/censusthrift and here is the failing CI build https://cloud.drone.io/jbub/censusthrift/1/1/2.

@marwan-at-work
Copy link
Author

My original issue is not about Checksum Mismatches, it's about the fact that the vanity server is not set up correctly. The issue is still reproducible if you follow my original description.

@jbub
Copy link

jbub commented Mar 4, 2019

Okay so i will open another issue as this seems like different issues.

@rghetia
Copy link
Contributor

rghetia commented Mar 4, 2019

@jbub with which version of go was the entry for [thrift](git.apache.org/thrift.git v0.12.0 h1:692K1/SsOcQvkvMRMdt60FCq2AvKpuQNM6sIeH3mN4s=) created? If you remove the entry and recreate it with g01.12 it should work.

@jbub
Copy link

jbub commented Mar 4, 2019

I thought i did it with Go 1.12 but apparently i did not ? This commit fixed it jbub/censusthrift@d4bcd45.

@jbub
Copy link

jbub commented Mar 4, 2019

Thanks for the help @rghetia.

@jbub
Copy link

jbub commented Mar 4, 2019

But then again seems like a bug related to Athens, it works with GOPROXY="", but does not work with GOPROXY pointed to athens proxy. Will be probably fixed by gomods/athens#1080 when v0.3.0 is released.

@jbub
Copy link

jbub commented Mar 5, 2019

Can confirm that the athens v0.3.0 fixes the issue, you just have to delete the old downloaded package from athens storage and then it will work.

@zerok
Copy link

zerok commented Mar 8, 2019

Can confirm that 🙂

@rghetia
Copy link
Contributor

rghetia commented Mar 27, 2019

fixed by #1052

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants