Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

go module git.apache.org/thrift.git fails to download (getting-started) #52

Closed
Oblynx opened this issue Sep 16, 2019 · 2 comments
Closed
Assignees

Comments

@Oblynx
Copy link

Oblynx commented Sep 16, 2019

Following the getting started instructions fails when the thrift go module fails to download.

$ operator-sdk new memcached-operator looks for a series of go modules, and after some time I get

go: git.apache.org/[email protected]: unknown revision v0.12.0
go: git.apache.org/[email protected]: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/kosamara/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: Connection timed out
go: error loading module requirements
Error: failed to exec []string{"go", "build", "./..."}: exit status 1

Related to scottleedavis/mattermost-plugin-remind#165
Suggested fix kubernetes/minikube#5245

@davidovich
Copy link

As a workaround, in go < 1.13, setting a proxy could allow getting the module. Can you try?

GOPROXY=https://proxy.golang.org operator-sdk new memcached-operator

@camilamacedo86 camilamacedo86 self-assigned this Sep 20, 2019
@camilamacedo86
Copy link
Contributor

Thank you for raising it.

To solve it you can add the proxy, and/or use the master branch and the command 'make tidy' which will use the proxy and your replicate the dep as replace git.apache.org/thrift.git => github.com/apache/thrift v0.12.0. For more info see here: operator-framework/operator-sdk#1873

Since it is duplicated we are closing this one. But please, feel free to re-open if you wish.

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

3 participants