brimworks / lua-zlib

Simple streaming interface to zlib for Lua.
273 stars 111 forks source link

Can't install - The unauthenticated git protocol on port 9418 is no longer supported #56

Open jclusso opened 2 years ago

jclusso commented 2 years ago

I'm getting this while trying to install.

> luarocks install lua-zlib 1.2-1;
Installing https://luarocks.org/lua-zlib-1.2-1.rockspec
Cloning into 'lua-zlib'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.
root@millipede:~# luarocks install lua-zlib
Installing https://luarocks.org/lua-zlib-1.2-1.rockspec
Cloning into 'lua-zlib'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
brimworks commented 2 years ago

I believe this line of the file:

https://github.com/brimworks/lua-zlib/blob/master/rockspecs/lua-zlib-1.2-1.rockspec#L4

...needs to be updated as such:

url = "git+https://github.com/brimworks/lua-zlib.git"

A similar issue was pointed out here:

https://github.com/brimworks/lua-ev/pull/30/files

You should be able to download the rockspec file and make the change, then run the luarocks command to install from a local rockspec file to try it out. If that works, a PR is appreciated.

Thanks!

vadym-panchuk commented 2 years ago

Hello. I've already done PR https://github.com/brimworks/lua-zlib/pull/58 . plz take a look