Commit graph

3 commits

Author SHA1 Message Date
Kim Alvefur
93ddf6892c prosody.loader: Ensure already loaded modules are found in old and new namespaces
Prevents modules being initialized twice, ensuring that
require"prosody.util.foo" == require"util.foo"
2023-03-17 15:11:26 +01:00
Kim Alvefur
d06cc5176b prosody.loader: Incorporate search path rewrite patch from Debian packages
Nice to drop that patch.

Will allow loading this to do something both when installed under a
prosody directory or from a source checkout.
2023-03-17 14:36:02 +01:00
Kim Alvefur
d33f55156b prosody.loader: Allow loading modules under 'prosody' namespace (#1223)
Actually `hg mv`-ing all the files is disruptive, basically breaking
everything from rebasing all my WIP draft commits to the package
building. So instead, what if we didn't and instead rewrote package
names as they are `require()`-d?

Debian packages produced by the Prosody are already installed into this
structure so much will Just Work if all require calls are updated.
2023-03-17 13:51:43 +01:00