lua-resty-repl icon indicating copy to clipboard operation
lua-resty-repl copied to clipboard

GitHub deprecated usage of unencrypted `git://` protocol last week, so luarocks can no longer install the package

Open milesrichardson opened this issue 2 years ago • 0 comments

GitHub deprecated usage of git:// (unencrypted Git protocol) on March 15th, 2022, so LuaRocks will fail to install any package including a source.url starting with git://. According to the LuaRocks documentation, the correct syntax for referencing https:// URLs is git+https://.

The solution is to change git:// to git+https:// in the rockspec file. I would open a PR for this, but I'm not sure your versioning process or which files to change. So I just wanted to leave the note here.

For anyone who sees this issue and is looking for a fix that doesn't require waiting for every luarocks package to update their rockspec files, here is a workaround, courtesy of stackoverflow:

git config --global url.https://github.com/.insteadOf git://github.com/

milesrichardson avatar Mar 21 '22 17:03 milesrichardson