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

git submodule update --recursive --remote results in fatal: clone of 'git://github.com/snap-cloud/raven-lua.git' #319

Open
opencoca opened this issue Dec 17, 2022 · 1 comment

Comments

@opencoca
Copy link

There's a problem with the way we're using Git. We're using the unauthenticated version on port 9418, which is identified by the "git://" prefix.

fatal: clone of 'git://github.com/snap-cloud/raven-lua.git' into submodule path ...
Failed to clone 'lib/raven-lua'. Retry scheduled
Cloning into ...

This connection is not encrypted and can be easily compromised by anyone on the network. GitHub stopped supporting this connection because of security issues. Also, even when it was supported, we couldn't push using it because there was no way to verify our identity.

We need to change the remote URL to HTTPS fix this problem. For example:

git submodule set-url -- lib/raven-lua https://github.com/snap-cloud/raven-lua.git

@opencoca
Copy link
Author

opencoca commented Dec 17, 2022

The same thing will need to be done for fatal: clone of 'git://github.com/jmoenig/snap.git' into submodule path

Fix by running:

git submodule set-url -- snap https://github.com/jmoenig/snap.git

Though on most systems we'll also need to adjust the git HTTP buffer size,

ulimit -n unlimited
ulimit -f unlimited```

This will allow snap to be pulled in also when you run `git submodule update --recursive --remote`

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

1 participant