lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

On 09.02.20 12:10, Thijs Schreijer wrote:
> Thx for the release! But I’m still get the same error;
>
> thijss-macbook:code thijs$ luarocks install timerwheel
> Installing https://luarocks.org/timerwheel-0.1.0-1.src.rock
>
>
> Error: Build error: Failed installing src/timerwheel.lua in /usr/local/Cellar/openresty/1.15.8.2/luarocks/lib/luarocks/rocks-5.1/timerwheel/0.1.0-1/lua/timerwheel/init.lua: The source and destination are the same files
> thijss-macbook:code thijs$
>

I tried your rockspec with luarocks 3.3.0 and got the same error. It is caused
because the source file doesn't not exist (at least not at the specified
position, see below).

After installing luarocks 3.3.1 I got again the same error message, although
this error message has been fixed in 3.3.1.

Then I recognized that the lua path was set to luarocks 3.3.0 under /usr/ and
not to luarocks 3.3.1 under /usr/local. Then with the correct lua path I got the
error message:

Error: Build error: Failed installing src/timerwheel.lua in
/home/oliver/.luarocks/lib/luarocks/rocks-5.3/timerwheel/0.1.0-1/lua/timerwheel/init.lua:
src/timerwheel.lua: No such file or directory

The source file is not found, because the repository directory is missing in the
rockspec: if you add the "dir" parameter in the rockspec, like:
source = {
  url = "git://github.com/Tieske/timerwheel.lua",
  tag = "0.1.0",
  dir = "timerwheel.lua",
}

your rockspec installs fine.

Best regards,
Oliver