Stratus3D / asdf-lua

Lua plugin for asdf version manager. https://github.com/asdf-vm/asdf
MIT License
62 stars 12 forks source link

Download the latest version of LuaRocks by default, with override #26

Closed jmcantrell closed 2 years ago

jmcantrell commented 2 years ago

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.

Either way, consider this a conversation starter.

Stratus3D commented 2 years ago

Testing this again...

Stratus3D commented 2 years ago

Thanks for the PR @jmcantrell ! We do need to update the readme with instructions on how ASDF_LUA_LUAROCKS_VERSION works.