I built a lua-rectangle using luarocks and successfully uploaded it to luarocks, but the installation failed. How to solve this problem?

  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://git@github.com/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"
   }
}
Dec.18,2021

solved. There is a problem with packaging tag and push order. Just reset it

.
Menu