新luarock的正确Rockspec文件名是什么? [英] What is the proper Rockspec filename for a new luarock?

查看:523
本文介绍了新luarock的正确Rockspec文件名是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据此页面: http://luarocks.org/en/Creating_a_rock

应将其保存在名为luafruits-1.0-1.rockspec的文件中.这 名称必须包含包"和版本"的小写版本 字段,否则LuaRocks会抱怨.

This should be saved in a file called luafruits-1.0-1.rockspec. The name must contain lowercase versions of the "package" and "version" fields, or else LuaRocks will complain.

但是,其他luarocks都使用rockspec作为文件名.在哪里可以获得有关rockspecname-VER-REV.rockspec的更多信息? Luarocks本身使用rockspec文件名: https://github.com/keplerproject/luarocks/blob/master/rockspec

However, other luarocks are using rockspec as the filename. Where can I get more information on rockspec vs name-VER-REV.rockspec? Luarocks itself uses a rockspec filename: https://github.com/keplerproject/luarocks/blob/master/rockspec

推荐答案

rockspec文件名与版本无关,但只能与luarocks make命令一起使用(因此,它对于开发/引导非常有用).要重新分发Rockspec(例如,发送包含在 http://luarocks.org 中的内容),请使用版本名称.一些开发人员还在其回购中保留一个rockspecs/目录,其中包含其发行版的rockspecs:然后,用户可以根据需要通过使用以下命令直接使用这些文件: luarocks install https://raw.github.com/lua4web/refser/v0.2/rockspecs/refser-0.2-1.rockspec(使用raw.github.com路径名).

A rockspec filename is version-agnostic, but can be used only with the luarocks make command (hence, it's useful for development/bootstrapping). For redistributing a rockspec (for example, sending for inclusion in http://luarocks.org), use the versioned name. Some devs also keep a rockspecs/ dir in their repo containing the rockspecs for their releases: users can then use those files directly if they wish so, by using commands such as luarocks install https://raw.github.com/lua4web/refser/v0.2/rockspecs/refser-0.2-1.rockspec (using the raw.github.com pathname).

这篇关于新luarock的正确Rockspec文件名是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆