Closed Corotyest closed 2 years ago
As the error explains, you are missing the tags
field, which is required. An example of a working metadata is:
--[[lit-meta
name = "luvit/codec"
version = "2.0.1"
dependencies = {
"luvit/utils@2.1.0",
}
license = "Apache 2"
homepage = "https://github.com/luvit/luvit/blob/master/deps/codec.lua"
description = "Utilities for working with luvit streams and codecs."
tags = {"luvit", "codec", "stream"}
]]
The Lit wiki may be a bit outdated regarding this.
but if i change it to init
into task::
The metadata comment is only supposed to be put in a single-file module (or in an init.lua). For directory module use package.lua (just like you have done in your last example). In all of the mentioned examples, you were trying to publish a directory, which had a single module file which is not how it is done.
For a single module-file, you have something like this:
task.lua
--[[lit-meta name = "Corotyest/task" version = "0.0.1" dependencies = {} license = "Apache 2" homepage = "https://github.com/Corotyest/task" description = "A manager for uv.new_timer..." tags = {"luvit", "uv", "time"} ]] -- etc
And to publish it you do
lit publish task.lua
(Note the .lua indicating it is a file).
AYAYA GRACIAS TE QUIERO: THANK YOU <3 (sorry about i am dumb)
I having this error when trying to publish a single file.