Other package managers have a lock down option. For example, on a dev machine you might have certain packages and certain versions. The goal would be to install those same packages and versions on a staging or production environment. Sometimes this is called shrinkwrap or lockdown.
Does luarocks have something similar?
As of LuaRocks 2.4.2, this is unfortunately not available as a single command.
But here is a sequence of operations that produces a similar effect.
In the dev machine:
Copy
packages.tar.gz
to the target machine then run:This will install package "foo" picking dependencies and sub-dependencies only from the
packages/
directory (and not from the network), so all dependencies are guaranteed to be the ones you packaged in the dev machine.