lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hi all

On 28 January 2016 at 21:02, mva <> wrote:
> 29.01.2016 02:05, leaf corcoran пишет:
>> Hello list,
>> I've been talking to a few people about what needs to be done encourage use
>> of LuaRocks in more places within the Lua community. A common request is "I
>> wish LuaRocks installed packages in the current directory like npm." It
>> bums me out to hear that because it's definitely already possible, but
>> non-explicit documentation hides the feature.

For those of us familiar with python-virtualenv and wanting similar
behaviour in the Lua world, I've written a simple shellscript to
basically emulate this behaviour. As Leaf mentions, Lua/LuaRocks
support this isolation behaviour out of the box, so it's a fairly
simple set of steps to automate this.

It's a bit of a hack (my shellscripting is fairly pitiful) but it may
be of utility to some.