Am 22.12.2015 um 01:08 schröbte Geoff Leyland: > On 22/12/2015, at 12:05 pm, Philipp Janda <siffie...@gmx.net> wrote: >> >>> If I'm going to try do this, then there's a couple of other things that >>> come to mind: >>> - even LR3 doesn't seem to have a git_ssh in fetch/, though there is an >>> hg_ssh. Why is that? >> >> Probably the lack of public servers with git+ssh access. If you need it, >> you can probably just copy `git_https.lua` to `git_ssh.lua`. > > I must have misunderstood. Both github and bitbucket offer clone > URL-likes that I thought were git+ssh: > g...@github.com:<username>/<repo>.git. > Is this not SSH? If it were, it would have the advantage that ssh > would take care of credentials, rather than having to stick them in a > URL in the rockspec.
That seems to be the alternative syntax for ssh URLs (gmane messed up the link). The man page of `git clone` lists the following supported URL types (plus some deprecated ones): * ssh://[user@]host.xz[:port]/path/to/repo.git/ * git://host.xz[:port]/path/to/repo.git/ * http[s]://host.xz[:port]/path/to/repo.git/ * [user@]host.xz:path/to/repo.git/ LuaRocks uses the protocol part of the URL to figure out which fetcher plugin to use. `git://` URLs use the `luarocks.fetch.git` module, `git+http://` uses `luarocks.fetch.git_http`. The latter just strips the `git+` part and passes the URL to `git clone`. Exactly the same code is used in `luarocks.fetch.git_https`, and could be used in `luarocks.fetch.git_ssh`. I don't think LuaRocks supports the alternative ssh URL syntax because it doesn't know which fetcher to use. Philipp ------------------------------------------------------------------------------ _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers