undefinedfix
Sign in

Build a Lua rectangle using luarocks and upload it to luarocks successfully, but the installation fails. How to solve this problem?

Trich edited in Thu, 12 May 2022
☁  lua-rectangle [master] ll
total 32
-rw-r--r--  1 zhangwei  staff    15B 11 27 15:04 README.md
-rw-r--r--  1 zhangwei  staff   352B 11 27 15:15 lua-rectangle-0.1-1.rockspec
-rw-r--r--  1 zhangwei  staff   770B 11 27 15:15 lua-rectangle-0.1-1.src.rock
-rw-r--r--  1 zhangwei  staff   355B 11 27 15:11 lua-rectangle.lua

☁  lua-rectangle [master] luarocks install lua-rectangle
Installing https://luarocks.org/lua-rectangle-0.1-1.src.rock


Error: Build error: Failed installing lua-rectangle.lua in /Users/zhangwei/.luarocks/lib/luarocks/rocks-5.3/lua-rectangle/0.1-1/lua/lua-rectangle.lua: The source and destination are the same files

Here is the lua-rectangle-0.1-1.rockspec code

package = "lua-rectangle"
version = "0.1-1"
source = {
   url = "git+ssh://[email protected]/zhangwei900808/lua-rectangle.git"
}
description = {
   homepage = "http://awbeci.xyz/lua-rectangle/",
   license = "MIT"
}
dependencies = {
  "lua >= 5.1, < 5.4"
}
build = {
   type = "builtin",
   modules = {
     ["lua-rectangle"] = "lua-rectangle.lua"
   }
}
1 Replies
rortr
commented on Thu, 12 May 2022

It's solved. There's a problem with the packing tag and push order. Just reset it

lock This question has been locked and the reply function has been disabled.