The installation works successfully, but the installed package is broken.
$ lua -lluarocks.loader
Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
> lain = require "lain"
/home/aireone/.luarocks/share/lua/5.4/lain/init.lua:12: module 'lain.layout' not found:
No LuaRocks module found for lain.layout
no field package.preload['lain.layout']
no file '/usr/share/lua/5.4/lain/layout.lua'
no file '/usr/share/lua/5.4/lain/layout/init.lua'
no file '/usr/lib/lua/5.4/lain/layout.lua'
no file '/usr/lib/lua/5.4/lain/layout/init.lua'
no file './lain/layout.lua'
no file './lain/layout/init.lua'
no file '/home/aireone/.luarocks/share/lua/5.4/lain/layout.lua'
no file '/home/aireone/.luarocks/share/lua/5.4/lain/layout/init.lua'
no file '/usr/lib/lua/5.4/lain/layout.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './lain/layout.so'
no file '/home/aireone/.luarocks/lib/lua/5.4/lain/layout.so'
no file '/usr/lib/lua/5.4/lain.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './lain.so'
no file '/home/aireone/.luarocks/lib/lua/5.4/lain.so'
stack traceback:
[C]: in function 'require'
/home/aireone/.luarocks/share/lua/5.4/lain/init.lua:12: in main chunk
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
This PR fix the modules list and make the rockspec file install all the modules (expect util/dkjson.lua which is installed by the required dependencies).
It can be tested locally with the installation command (Note to anyone wanting to test that without cloning the repo: you can also use an HTTP URL to the file on GitHub):
luarocks --local install lain-scm-1.rockspec
After that, the rock can be loaded successfully from an Awesome WM config.
Here is the output luarocks show lain gives me. As expected, there is now the full list of modules installed.
Hello :wave:
After installing the rock with the command from the wiki https://github.com/lcpz/lain/wiki
The installation works successfully, but the installed package is broken.
/home/aireone/.luarocks/share/lua/5.4/lain/init.lua:12: module 'lain.layout' not found
points to https://github.com/lcpz/lain/blob/master/init.lua#L12And
ls
in this directory only outputs theinit.lua
file (as expected)According to https://github.com/luarocks/luarocks/wiki/Creating-a-rock#building-a-module, the
modules = { lain = "init.lua" }
configuration tells Luarocks to install only theinit.lua
file.This PR fix the
modules
list and make the rockspec file install all the modules (expectutil/dkjson.lua
which is installed by the required dependencies).It can be tested locally with the installation command (Note to anyone wanting to test that without cloning the repo: you can also use an HTTP URL to the file on GitHub):
After that, the rock can be loaded successfully from an Awesome WM config.
Here is the output
luarocks show lain
gives me. As expected, there is now the full list of modules installed.