snapCloud icon indicating copy to clipboard operation
snapCloud copied to clipboard

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

Open opencoca opened this issue 3 years ago • 1 comments

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 avatar Dec 17 '22 15:12 opencoca

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`

opencoca avatar Dec 17 '22 15:12 opencoca