steve0511 / resty-redis-cluster

Openresty lua client for redis cluster.
Apache License 2.0
376 stars 134 forks source link

GitHub dropping support for unauthenticated git protocol #97

Open travisbell opened 2 years ago

travisbell commented 2 years ago

Right now, in the rockspec, you're definding the source.url as:

url = "git://github.com/steve0511/resty-redis-cluster",

That has started failing in my CI env:

Installing https://luarocks.org/resty-redis-cluster-1.05-1.rockspec
Cloning into 'resty-redis-cluster'...
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.

I'm pretty sure the fix is pretty straightforward, and you need to simply update the source URL to:

url = "git+https://github.com/steve0511/resty-redis-cluster",

I've tested this locally with a copied version of the rockspec and things are looking good.