Я пытаюсь использовать luarocks
для загрузки проекта.Тем не менее, когда я запускаю
$ luarocks upload kong-plugin-hello-0.1.0-1.rockspec --api-key=<REDACTED>
Возвращает Error: File not found: git:github.com/JoshTheGoldfish/kong-plugin-hello
Ниже мой горный спек:
package = "kong-plugin-hello"
version = "0.1.0-1"
local pluginName = package:match("^kong%-plugin%-(.+)$") -- "myPlugin"
supported_platforms = {"linux", "macosx"}
source = {
url = "git:github.com/JoshTheGoldfish/kong-plugin-hello",
tag = "v0.1.0",
}
description = {
summary = "Kong is a scalable and customizable API Management Layer built on top of Nginx.",
homepage = "http://getkong.org",
license = "Apache 2.0"
}
dependencies = {
}
build = {
type = "builtin",
modules = {
["kong.plugins."..pluginName..".handler"] = "kong/plugins/"..pluginName.."/handler.lua",
["kong.plugins."..pluginName..".schema"] = "kong/plugins/"..pluginName.."/schema.lua",
}
}
Любой мой код можно найти здесь: https://github.com/JoshTheGoldfish/kong-plugin-hello
Есть какие-нибудь подсказки, чего мне здесь не хватает?