安装 Lua 库的特定分支

Luarocks 很好用,但我需要安装一个特定版本的库,它尚未被标记。

有什么正确的方式可以安装库,但使用 master 或任何特定提交中的代码。

例如,当我执行 luarocks install luasocket --local 时,它会执行以下操作:

Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock

我能强制它获取特定分支中的代码吗?

点赞
用户1442917
用户1442917

你可以复制模块的 rockspec 文件,并调整 source.branch 的指向(https://github.com/luarocks/luarocks/wiki/Rockspec-format#build-rules)。

2019-12-24 05:48:22