[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Luver - version manager for Lua (+ LuaJIT + LuaRocks)
- From: Munif Tanjim <hello@...>
- Date: Sun, 28 Nov 2021 23:05:34 +0600
Recently I've been dabbling with Lua. It started as mostly tinkering
with my Neovim configuration and building some plugins for it. But
then I started to dive a bit deeper and make some other stuffs too.
And that's when I noticed that there is no currently maintained tool
like nvm/pyenv/rbenv for Lua (found
https://github.com/cehoffman/luaenv - but no activity for 4 years).
So I built one: https://github.com/MunifTanjim/luver
This takes a different approach than the two aforementioned tools.
- It only adds about 10 LOC to your shell's startup config. So it's
very fast. (luaver adds about 700 LOC).
- No shims, i.e. when you run a command (e.g. lua, luarocks or some
binary installed using luarocks) it does not pass through a script
provided by Luver. You run the actual binary directly. (luaenv uses
Here are the features of Luver:
- Install and switch between Lua versions.
- Use different Lua versions on different shell sessions.
- Associate a specific LuaJIT and LuaRocks version to each installed
- Install the latest unreleased LuaJIT from the git repository.
- Shell completion support for Bash/Fish/Zsh.
As a bonus, if you want to use Luver in your GitHub Actions workflow -
a GitHub Action is available for it:
I'd be really happy if this tool helps at least some of you! In case
you decide to try it and found some bug or have any suggestions, feel
free to create an issue on GitHub.
_P.S.: Why is it called Luver? It's a pun... Lua + Version = Luver
(sounds like lover)._
Have a great day!