Module luarocks.loader

Functions

add_context (name, version) Process the dependencies of a package to determine its dependency chain for loading modules.
luarocks_loader (module) Package loader for LuaRocks support.
sort_versions (a, b) Internal sorting function.


Functions

add_context (name, version)
Process the dependencies of a package to determine its dependency chain for loading modules.

Parameters

  • name:
  • version:
luarocks_loader (module)
Package loader for LuaRocks support. A module is searched in installed rocks that match the current LuaRocks context. If module is not part of the context, or if a context has not yet been set, the module in the package with the highest version is used.

Parameters

  • module: string: The module name, like in plain require().

Return value:

table: The module table (typically), like in plain require(). See require() in the Lua reference manual for details.
sort_versions (a, b)
Internal sorting function.

Parameters

  • a: table: A provider table.
  • b: table: Another provider table.

Return value:

boolean: True if the version of a is greater than that of b.

Valid XHTML 1.0!