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

Update mod file to avoid apache thrift dependency error #190

Closed
abdullah2993 opened this issue Sep 1, 2019 · 4 comments
Closed

Update mod file to avoid apache thrift dependency error #190

abdullah2993 opened this issue Sep 1, 2019 · 4 comments

Comments

@abdullah2993
Copy link
Contributor

Unable to build a new copy with modules enabled.

Error:

go: finding git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999
go: finding git.apache.org/thrift.git v0.12.0
go: git.apache.org/[email protected]: unknown revision v0.12.0
go: git.apache.org/[email protected]: git fetch -f https://git.apache.org/thrift.git refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in C:\Users\abdullah\go\pkg\mod\cache\vcs\83dba939f95a790e497d565fc4418400145a1a514f955fa052f662d56e920c3e: exit status 128:
        fatal: unable to access 'https://git.apache.org/thrift.git/': Failed to connect to git.apache.org port 443: Timed out
go: error loading module requirements

Reason:
Apache thrift repo has moved to github. google api/cloud packages depends on opencensus-go which depends upon thrift. The issue is tracked here.

Fix:
Add replace git.apache.org/thrift.git => github.com/apache/thrift v0.12.0 to go.mod

abdullah2993 referenced this issue in abdullah2993/imageproxy Sep 1, 2019
@willnorris
Copy link
Owner

I'm having trouble reproducing this. What version of go are you running?

@abdullah2993
Copy link
Contributor Author

go version go1.12.9 windows/amd64

@abdullah2993
Copy link
Contributor Author

abdullah2993 commented Sep 1, 2019

I'm not sure how module cache works, but you might be able to reproduce it by deleting thrift from module cache?

@samvdb
Copy link

samvdb commented Sep 2, 2019

apache repo is down: https://status.apache.org/

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

3 participants