lazy.nvim/lua/lazy/pkg
Spencer Gray 17732094c8 fix(health, rockspec): accept Lua 5.1+ for luarocks compatibility
Previously, lazy.nvim health checks required exactly Lua 5.1, causing
warnings on systems with newer Lua versions (5.2, 5.3, 5.4). This was
unnecessarily restrictive since LuaRocks can run on any Lua version 5.1+
to build packages.

Its true that Neovim plugins must be Lua 5.1 compatible (due to LuaJIT),
but the `--lua-version 5.1` flag tells luarocks to build for 5.1.

After some light testing, I verified a system with Lua 5.4 should be
able to build Lua 5.1-compatible packages just fine.

The key point is that this removes false warnings while maintaining the
same safety guarantees - LuaRocks with any modern Lua version can still
build packages targeting Lua 5.1 compatibility for Neovim.

Closes: #2020
2025-07-14 16:29:52 -04:00
..
init.lua feat(rocks): simple rockspecs are now fully resolved by lazy without luarocks. See #1548 2024-06-25 20:53:42 +02:00
lazy.lua fix(pkg): versioning and reload specs when pkg-cache is dirty 2024-06-24 17:15:10 +02:00
packspec.lua feat: added support for plugin packages by lazy, rockspec and packspec 2024-06-24 17:15:10 +02:00
rockspec.lua fix(health, rockspec): accept Lua 5.1+ for luarocks compatibility 2025-07-14 16:29:52 -04:00