I'd like to install with rockspec lua-ext but I'm not sure what is the cleanest way to do it via rockspec:

  • it has no release and luarocks install --local https://github.com/thenumbernine/lua-ext does not work (I tried just in case)
  • if I clone the repo, running luarocks make --local ext.rockspec or luarocks install --local ext.rockspec fails with `Error: Expected filename in format 'name-version-revision.rockspec'.
  • I then tried to rename it to ext-dev-1.rockspec, and modified ~> 5.1 to > 5.3 and it does install… but I feel like I'm doing something wrong since not a single package name it like that.
  • Then I tried to run lua and then require('ext.table') but then I get module 'ext.table' not found, so it means that I need to also run every-time I start lua package.path = package.path .. ";/home/leo/.luarocks/share/lua/5.3/?.lua". It works but feels very flacky. And I feel like setting this in an environment variable is not much cleaner since the path depends on the lua version currently in use.

So I'm curious:

  • how would people install lua-ext quickly
  • how would they develop modules based on rockspec? Do they create a local foo-dev-1.rockspec and run luarocks make --local foo-dev-1.rockspec everytime they change one line?
  • how do people import luarocks-installed library?