forked from luarocks/luarocks
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made luarocks compatible with tarantool
* Skip external commands loading if no external_namespace provided: it is so when a command is run using `tarantoolctl rocks <command>`. * Allow to omit a description field in a rockspec. * Configure more options using hardcoded.lua (it is named as site_config.lua in luarocks-2.x). Based on or inspired by the following commits: - 9f55766 ('Add LUAROCKS_LOCAL_BY_DEFAULT option to site_config.lua'). - e3f7486 ('Allow to override certain values in cfg.lua'). - dba49e0 ('Enable cfg.home_tree even for root'). - 6e6fe62 ('Add site_config.LUAROCKS_LOCALDIR config variable'). The following options are added for hardcoded.lua: - LOCALDIR - LOCAL_BY_DEFAULT - HOMEDIR - HOME_TREE_SUBDIR - LUA_MODULES_LUA_SUBDIR - LUA_MODULES_LIB_SUBDIR - ROCKS_SERVERS The following options are ported from luarocks-2 (and renamed from LUAROCKS_FOO to FOO): - ROCKS_SUBDIR - EXTERNAL_DEPS_SUBDIRS All that options are needed to adjust behaviour of luarocks from tarantool-side hardcoded.lua file. * Detect tarantool and add it to rocks_provided and rocks_provided_3_0. Based on: - 370d173 ('Detect and add Tarantool it to rocks_provided)' * Execute cfg.init() code only once. * Fixed strict mode. Inspired by: - dfaf765 ('Fix strict mode'). * Dropped site_config.lua support: tarantool doesn't use it anymore.
- Loading branch information
Showing
4 changed files
with
29 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters