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-extdoes not work (I tried just in case) - if I clone the repo, running
luarocks make --local ext.rockspecorluarocks install --local ext.rockspecfails with `Error: Expected filename in format 'name-version-revision.rockspec'. - I then tried to rename it to
ext-dev-1.rockspec, and modified~> 5.1to> 5.3and 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
luaand thenrequire('ext.table')but then I getmodule 'ext.table' not found, so it means that I need to also run every-time I start luapackage.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-extquickly - how would they develop modules based on
rockspec? Do they create a localfoo-dev-1.rockspecand runluarocks make --local foo-dev-1.rockspeceverytime they change one line? - how do people import luarocks-installed library?