On 21/12/2015, at 3:02 pm, Daurnimator <q...@daurnimator.com> wrote: > > On 21 December 2015 at 12:46, Geoff Leyland <geoff_leyl...@fastmail.fm> wrote: > >> Is there a workaround? Would I need to set up a private rock server? How >> hard is that? Could my manifest be a hand-edited file hosted on bitbucket? >> Do I need to have actual rocks on the server, or can they all be scm rocks >> referring to bitbucket too? > > A rock server can be as simple as hosting a HTTP server containing the > .rockspec files + a maintained manifest. > To create a manifest, run: `luarocks-admin make_manifest my/dir/of/rockspecs/`
Further to this, has anyone managed to get luarocks to install an scm rock that's hosted in a private repository in bitbucket? The problems I've encountered are: 1) I can't manage to host a manifest in a private repo on bitbucket. I can in github, thanks to "personal access tokens" - add a line to ~/.luarocks/config-5.x.lua that says: { "https://<personal-access-token>:x-oauth-ba...@raw.githubusercontent.com/<username>/<repo>/master/" }, Bitbucket doesn't seem to support personal access tokens (I have a question on that on StackOverflow). 2) There doesn't seem to be a protocol on which luarocks will talk to a *private* repository on bitbucket. git:// seems to be unauthenticated, so doesn't really work for private repositories. Luarocks doesn't seem to understand ssh:// urls. https:// nearly gets there: I can get a zip of the repository with: source = { url = "https://<username>:<password>@bitbucket.org/<username>/<repo>/get/master.zip" } But the top level directory of the zip is unhelpfully named "<repo>-<hash>", rather than the "<repo>-master" you get from github. This means that you can't set source.dir to the name of this directory (since every time you commit the new hash you... change the hash of the head). Anyone have any ideas? Thanks, Geoff ------------------------------------------------------------------------------ _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers