我正在尝试使用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
任何线索,我在这里可能会错过什么?
答案 0 :(得分:0)
source.url
必须是:git://github.com...
而不是git:github.com...