Skip to content

Conversation

@rkazak
Copy link

@rkazak rkazak commented Jun 15, 2022

I think this is how the source url should be defined.

I was having an issue when following this https://tech.aufomm.com/use-custom-plugins-with-kong/.

The git command that luarocks was trying to execute on my container to was this

fs.execute("'git'", "clone", "--depth=1", "git://github.com/yesinteractive/kong-jwt2header.git", "kong-jwt2header")

This fails

Test2 /Users/rkazak/ >docker exec -it --user root kong-demo luarocks install kong-jwt2header

Installing https://luarocks.org/kong-jwt2header-1.0-3.rockspec
Cloning into 'kong-jwt2header'...
fatal: unable to connect to github.com:
github.com[0: 192.30.255.112]: errno=Connection refused


Error: Failed cloning git repository.

due to this ( I believe ).

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.

Also for some reason I had to have the filename match the package as defined in the file? So I am not sure if you will need to do that too. I was using

bash-5.0# luarocks --version
/usr/local/bin/luarocks 3.7.0
LuaRocks main command-line interface

I think this is how the source url should be defined.
@rkazak
Copy link
Author

rkazak commented Jun 15, 2022

As above?

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

Successfully merging this pull request may close these issues.

1 participant