-
Notifications
You must be signed in to change notification settings - Fork 1.8k
operator-sdk new
fails because it is unable to reach git.apache.org
#1873
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
Comments
@gzur Let the install get as far as it can. Then: # add this to the end of the go.mod file
replace git.apache.org/thrift.git => github.com/apache/thrift v0.12.0 Then from the actual directory of the operator (for you go mod tidy This will fetch the remaining dependencies |
Hi @gzur, I tried to reproduce this scenario with the master branch and I could not face the same issue. Shows the dep is in the repo informed and not in the operator-sdk. If you just run the command without inform the repo the project will be created successfully.
Please, let us know if it solved your issue and if has anything that we could do here to help you with. |
HI @joelanford, WDYT? Has anything else that we should address in this one? Have any action which should be done here or we could close this one since the scaffold project created by master branch shows not face this issue? PS.: I faced the same issue with a project which was already created and the solution added here solved it. |
@camilamacedo86 I think you would need to delete your Go modules cache and attempt to reproduce it without that package already existing in your cache. Having said that, I'm not sure there's anything for us to do here since this seems to be a temporary issue with a transitive dependency. I think the workaround that @jadencodes posted (thanks!) is enough to close this issue. |
I run but adding |
@udayvishwakarma, what |
@doltori update the |
Note that git.apache.org is down and the cause is being investigated. This has happened a few times in the past few days AFAIK. |
As far as I know the ASF recommends people always download through mirrors and not directly from ASF resources. So switching to the github mirror seems like the right thing to do here. |
@joelanford @camilamacedo86 I'm still seeing this in my build. Any chance to reopen? I think the following presents a pretty good case to do so:
Given the above, could we consider re-opening this and switching over to the github repos by default? It doesn't address the fundamental issue of "could dependency download fail" but from a practical standpoint it moves the dependency hosting to much more reliable infrastructure. Especially this week as Apache is having ongoing issues. |
I'll submit a PR that adds |
Thanks for the speedy ack, and thanks for all your work making operator-development easier. |
It looks like git.apache.org isn't coming back at all: https://blogs.apache.org/infra/entry/subversion-to-git-service-git The advice Jeremiah gave earlier about github mirrors being the preferred way of exposing things is reiterated at the bottom of that post. |
Since no one seems to have explicitly mentioned it, setting:
environment variable also avoids the problem without needing to change anything. You will pick up the package from the proxy cache. |
FWIW, it wasn't in the package cache 2 days ago, but good to hear that it is now. That's probably the best workaround that functions in CI/CD for now, but given the blog post above I'd still advocate eliminating all dependencies pointing toward git.apache.org. |
Hmmm, I only had to deal with the problem in the last day. Is lucky then the proxy worked. I am just hoping it doesn't stop working now. |
The Apache Git repository is (currently, and maybe indefinitely) unavailable. We replace it with the official GitHub mirror. See: #1700 See: operator-framework/operator-sdk#1873
The Apache Git repository is (currently, and maybe indefinitely) unavailable. We replace it with the official GitHub mirror. See: #1700 See: operator-framework/operator-sdk#1873 (cherry picked from commit 48b75ca) Signed-off-by: Nicolas Trangez <[email protected]>
It has an open pr for it: #1899 |
The Apache Git repository is (currently, and maybe indefinitely) unavailable. We replace it with the official GitHub mirror. See: #1700 See: operator-framework/operator-sdk#1873 (cherry picked from commit 48b75ca) Signed-off-by: Nicolas Trangez <[email protected]>
Platform:
macOS Mojave 10.14.6 - just installed via HomeBrew.
Problem encountered:
I can't run
operator-sdk new
because git.apache.org seems to be down. (see command output below)I notice that thrift is also available on github, but I don't know enough about go-lang dependency management to make use of that fact.
The text was updated successfully, but these errors were encountered: