How can I set lua stones from manifest file?

I come from the python background, and I hope to do something semantically equivalent pip install -r requirements.txtto set the list of Python packages in the correct version.

Is this achievable with help luarocks? If not, is there a way to hack this together on the command line?

+4
source share
1 answer

The system in Lua is a little different. There is a rockpec manifest file associated with each package. You can list your package dependencies here in this file, and you can install them using

"luarocks install name.rockspec".

See Luarocks for more details.

Read more about the Rockspec format here.

/

+1

Source: https://habr.com/ru/post/1625894/


All Articles