[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Non-uniqueness of module names
- From: Fabio Mascarenhas <mascarenhas@...>
- Date: Wed, 17 Apr 2019 17:55:59 -0400
On Wed, Apr 17, 2019 at 5:37 PM Fabio Mascarenhas <firstname.lastname@example.org> wrote:
> That is only solvable by having LuaRocks provide its own require
> function and monkey-patching the global require (which it used to).
On second thought, things are not actually that bleak, since
ll_require uses regular get/set instead of the raw versions, so the
LuaRocks loader could install a metatable in package.loaded to replace
it with a package cache under the control of LuaRocks.