aboutsummaryrefslogtreecommitdiff
path: root/Makefile.setup.inc
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-06-30 01:15:01 -0300
committerHisham <hisham@gobolinux.org>2016-06-30 01:15:01 -0300
commitf2beb5ee1fd2c54d59a43f4f2a8fe0f7a1701daa (patch)
tree46f958aa7efb4d6b31612178026228ba49e612f5 /Makefile.setup.inc
parent6b38323d10743c83e377d9be2fa734a3a3d5a300 (diff)
downloadluarocks-f2beb5ee1fd2c54d59a43f4f2a8fe0f7a1701daa.tar.gz
luarocks-f2beb5ee1fd2c54d59a43f4f2a8fe0f7a1701daa.tar.bz2
luarocks-f2beb5ee1fd2c54d59a43f4f2a8fe0f7a1701daa.zip
Core modules reorganization.
Isolate all modules used by luarocks.loader in a luarocks.core.* namespace. Core modules can only require other core modules, and they only use require() at the top-level chunk. In other words, after luarocks.loader is setup, package.path can be altered at will and it should not affect the ability of luarocks.loader to run, and the luarocks.loader modules should not interfere with modules loaded later. This was motivated by @robooo's GSoC work on porting the LuaRocks test suite to Lua using Busted. Busted itself runs using luarocks.loader, and we need to ensure that the modules loaded by the tests do not conflict with the ones used by luarocks.loader. A circular dependency between luarocks.manif and luarocks.search was removed by creating a separate luarocks.manif.writer module. Also, luarocks-admin commands were moved to a luarocks.admin.* namespace.
Diffstat (limited to 'Makefile.setup.inc')
-rw-r--r--Makefile.setup.inc26
1 files changed, 13 insertions, 13 deletions
diff --git a/Makefile.setup.inc b/Makefile.setup.inc
index 092d0423..eff6f49b 100644
--- a/Makefile.setup.inc
+++ b/Makefile.setup.inc
@@ -5,16 +5,16 @@ BINDIR ?= $(PREFIX)/bin
5LUADIR ?= $(PREFIX)/share/lua/$(LUA_VERSION)/ 5LUADIR ?= $(PREFIX)/share/lua/$(LUA_VERSION)/
6 6
7BIN_FILES = luarocks luarocks-admin 7BIN_FILES = luarocks luarocks-admin
8LUAROCKS_FILES = fs/tools.lua fs/unix/tools.lua fs/unix.lua fs/win32/tools.lua fs/win32.lua \ 8LUAROCKS_FILES = admin/add.lua admin/cache.lua admin/make_manifest.lua admin/refresh_cache.lua \
9fs/lua.lua persist.lua list.lua require.lua repos.lua dir.lua make_manifest.lua \ 9admin/remove.lua build.lua build/builtin.lua build/cmake.lua build/command.lua \
10command_line.lua config_cmd.lua install.lua build/command.lua build/cmake.lua \ 10build/make.lua command_line.lua config_cmd.lua core/cfg.lua core/deps.lua \
11build/make.lua build/builtin.lua fetch/cvs.lua fetch/git.lua fetch/sscm.lua \ 11core/dir.lua core/manif.lua core/path.lua core/persist.lua core/type_check.lua \
12tools/patch.lua fetch/svn.lua tools/zip.lua tools/tar.lua pack.lua type_check.lua \ 12core/util.lua deps.lua dir.lua doc.lua download.lua fetch.lua fetch/cvs.lua \
13make.lua remove.lua fs.lua manif.lua add.lua deps.lua build.lua search.lua \ 13fetch/git.lua fetch/git_file.lua fetch/git_http.lua fetch/git_https.lua \
14show.lua manif_core.lua fetch.lua unpack.lua validate.lua cfg.lua download.lua \ 14fetch/git_ssh.lua fetch/hg.lua fetch/hg_http.lua fetch/hg_https.lua fetch/hg_ssh.lua \
15help.lua util.lua index.lua cache.lua refresh_cache.lua loader.lua \ 15fetch/sscm.lua fetch/svn.lua fs.lua fs/lua.lua fs/tools.lua fs/unix.lua fs/unix/tools.lua \
16admin_remove.lua fetch/hg.lua fetch/git_file.lua new_version.lua lint.lua \ 16fs/win32.lua fs/win32/tools.lua help.lua index.lua install.lua lint.lua list.lua \
17purge.lua path.lua path_cmd.lua write_rockspec.lua doc.lua upload.lua \ 17loader.lua make.lua manif.lua manif/writer.lua new_version.lua pack.lua path.lua \
18upload/api.lua upload/multipart.lua fetch/git_http.lua fetch/hg_http.lua \ 18path_cmd.lua persist.lua purge.lua remove.lua repos.lua require.lua search.lua \
19fetch/hg_https.lua fetch/hg_ssh.lua fetch/git_https.lua fetch/git_ssh.lua 19show.lua tools/patch.lua tools/tar.lua tools/zip.lua type_check.lua unpack.lua \
20 20upload.lua upload/api.lua upload/multipart.lua util.lua write_rockspec.lua