This adds the ability to install the latest version of LuaRocks, by default, and to specify the version explicitly with ASDF_LUA_LUAROCKS_VERSION. It would be preferable to use jq to parse the version from github's api output, but the included function works fine on both linux and macos.
There may be a good reason (that I'm not aware of) why you have the LuaRocks version hardcoded, like compatibility with a greater range of previous lua versions.
This adds the ability to install the latest version of LuaRocks, by default, and to specify the version explicitly with
ASDF_LUA_LUAROCKS_VERSION
. It would be preferable to usejq
to parse the version from github's api output, but the included function works fine on both linux and macos.There may be a good reason (that I'm not aware of) why you have the LuaRocks version hardcoded, like compatibility with a greater range of previous lua versions.
Either way, consider this a conversation starter.