Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fs: add LuaPosix-version of set_permissions | Hisham Muhammad | 2018-07-01 | 3 | -51/+92 | |
| | | | | | | | | This implemention the ugly side-effect of "exposing" some Unix-specific utility functions to the public API, so they can be shared by `luarocks.fs.lua` and `luarocks.fs.unix.tools`. I named those functions `_unix_*` (with a Python-style `_` at the beginning) to clarify that they should not be used publicly. | |||||
* | fs.lua: add a LuaPosix-independent version of make_temp_dir | Hisham Muhammad | 2018-07-01 | 1 | -0/+18 | |
| | | | | This version can run on Windows using lfs alone. | |||||
* | manif: fix loading rock manifest from the correct repo | Hisham Muhammad | 2018-07-01 | 1 | -1/+1 | |
| | | | | | get_providing_file was always loading the rock_manifest from the default repo. | |||||
* | fs: math.randomseed only once | Hisham Muhammad | 2018-07-01 | 3 | -4/+2 | |
| | ||||||
* | show: add --porcelain and --rock-license options | Hisham Muhammad | 2018-07-01 | 2 | -74/+130 | |
| | ||||||
* | command: auto-export some standard variables | Hisham Muhammad | 2018-07-01 | 1 | -3/+10 | |
| | ||||||
* | fs: add execute_env: execute with environment variables | Hisham Muhammad | 2018-07-01 | 1 | -0/+9 | |
| | ||||||
* | config: be more resilient when reading config files | Hisham Muhammad | 2018-07-01 | 1 | -2/+1 | |
| | ||||||
* | fs: nicer error message when cfg is not initialized | Hisham Muhammad | 2018-07-01 | 1 | -0/+4 | |
| | ||||||
* | cmd, cfg: read project-dir configuration | Hisham Muhammad | 2018-07-01 | 3 | -9/+40 | |
| | ||||||
* | cmd, Tests: ensure versioned directory is tried first | Hisham Muhammad | 2018-07-01 | 1 | -1/+1 | |
| | ||||||
* | cmd: ensure that found Lua matches version requested with --lua-version | Hisham Muhammad | 2018-07-01 | 1 | -24/+26 | |
| | ||||||
* | Tests: ensure that tests do not accidentally find a project dir | Hisham Muhammad | 2018-07-01 | 1 | -0/+2 | |
| | ||||||
* | builtin: only add Lua libdir when linking liblua | Hisham Muhammad | 2018-07-01 | 1 | -2/+3 | |
| | ||||||
* | cfg, cmd: major reorganization | Hisham Muhammad | 2018-07-01 | 7 | -785/+963 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `--lua-dir` flag, specifying a prefix for the Lua installation to be used. This reconfigures LuaRocks entirely, including allowing a LuaRocks which is itself running using one Lua 5.x version to manage packages for a different Lua 5.y version. The resulting configuration can be checked with `luarocks config --lua-dir=<path>`. * requiring `luarocks.core.cfg` no longer has side-effects * configuration now needs to be initialized with `cfg.init([lua_data])`, where `lua_data` is a table with the configuration of the VM: * `lua_version` - e.g. `"5.3"` * `luajit_version` - e.g. `"2.1.0-beta3"` * `lua_interpreter` - e.g. `"lua5.3"` * `lua_bindir` - e.g. `"/usr/local/bin"` * `lua_libdir` - e.g. `"/usr/local/lib"` * `lua_incdir` - e.g. `"/usr/local/include/lua-5.3"` * `cfg.init` can be called multiple times, reconfiguring the global state. This is important since `luarocks.loader` now calls it, and the `--lua-dir` command line can override the configuration and reconfigure LuaRocks. * `site_config_*` is no more: LuaRocks is no longer dependent on a properly-written site_config file. Instead, it can *optionally* use `luarocks.core.hardcoded` for hardcoded values, or detect its configuration at runtime, based on OS detection, arg[-1] or command-line flags. * reduction of moving parts in the configuration: * `cfg.platforms` is no longer a globally-visible table; instead, `cfg` provides an API of read-only functions: `is_platform`, `each_platform`, `print_platforms`. * `cfg.*_proxy` options are no longer configured via the config files, but rather via the standard `*_proxy` environment variables. * `"windows"` is now the more general platform name of the Windows family. This is technically a breaking change but I don't expect it to cause problems with real-world rockspecs. * internal code reorganization in `luarocks.cmd` module | |||||
* | persist: add save_as_module, for all-in-one binary | Hisham Muhammad | 2018-07-01 | 1 | -2/+33 | |
| | ||||||
* | build: use cfg.is_platform() | Hisham Muhammad | 2018-07-01 | 1 | -1/+1 | |
| | ||||||
* | util: support listing Lua versions in descending order | Hisham Muhammad | 2018-07-01 | 1 | -4/+12 | |
| | ||||||
* | rockspecs: use cfg.each_platform() | Hisham Muhammad | 2018-07-01 | 1 | -4/+4 | |
| | ||||||
* | cmd: move local functions inside | Hisham Muhammad | 2018-07-01 | 1 | -21/+22 | |
| | ||||||
* | cmd: new command-line initialization sequence | Hisham Muhammad | 2018-07-01 | 4 | -15/+15 | |
| | ||||||
* | queries: delay initalization of default [arch] entry | Hisham Muhammad | 2018-07-01 | 1 | -1/+6 | |
| | ||||||
* | cmd: move cfg.errorcodes to cmd.errorcodes | Hisham Muhammad | 2018-07-01 | 7 | -28/+24 | |
| | ||||||
* | cmd: rename luarocks.command_line to luarocks.cmd | Hisham Muhammad | 2018-07-01 | 3 | -9/+9 | |
| | ||||||
* | fs: make module loading side-effect free, require explicit init() | Hisham Muhammad | 2018-07-01 | 4 | -49/+72 | |
| | ||||||
* | fs: perform tool detection at runtime (downloader, md5checker) | Hisham Muhammad | 2018-06-28 | 3 | -25/+63 | |
| | ||||||
* | core.util: move type_check.merge_under to core.util.deep_merge_under | Hisham Muhammad | 2018-06-28 | 3 | -20/+27 | |
| | ||||||
* | fs.win32.pe-parser: copy get_architecture from install.bat | Hisham Muhammad | 2018-06-28 | 1 | -0/+15 | |
| | ||||||
* | config: skip some LuaRocks 2.x cfg options | Hisham Muhammad | 2018-06-28 | 1 | -1/+9 | |
| | ||||||
* | config: print out full config when given no arguments | Hisham Muhammad | 2018-06-28 | 1 | -1/+74 | |
| | ||||||
* | Move win32.pe-parser to luarocks.fs.win32.pe-parser | Hisham Muhammad | 2018-06-28 | 1 | -0/+553 | |
| | ||||||
* | Nicer-looking path for project dir | Hisham Muhammad | 2018-06-28 | 1 | -0/+1 | |
| | ||||||
* | rockspecs: propagate failure when parsing dependencies | Hisham Muhammad | 2018-06-20 | 1 | -3/+7 | |
| | ||||||
* | Tests: patch.lua | George Roman | 2018-06-14 | 1 | -40/+1 | |
| | ||||||
* | Tests: add c:\mingw to library search path | Hisham Muhammad | 2018-06-14 | 1 | -0/+1 | |
| | ||||||
* | Windows: find default system libraries | Hisham Muhammad | 2018-06-14 | 1 | -1/+13 | |
| | ||||||
* | builtin: if "libraries" is used but "external_dependencies" is not given, ↵ | Hisham Muhammad | 2018-06-14 | 2 | -0/+36 | |
| | | | | | | | | autogenerate it The approach is slightly ugly since it adds builtin-specific knowledge to `luarocks.deps`, but I don't think any other build backends will support this behavior any time soon. | |||||
* | builtin: auto-detect modules when build.modules (or build!) is absent | Hisham Muhammad | 2018-06-14 | 3 | -56/+94 | |
| | ||||||
* | Refactor type checking to allow mandatory attribute to be dropped | Hisham Muhammad | 2018-06-14 | 4 | -166/+251 | |
| | ||||||
* | Ensure that unknown md5 modules are not erroneously detected | Hisham Muhammad | 2018-06-12 | 1 | -0/+3 | |
| | | | | Closes #805. | |||||
* | General refactor introducing Rockspec and Build.Opts objects | Hisham Muhammad | 2018-06-06 | 28 | -615/+754 | |
| | | | | | | | | | | Adds a Rockspec object responsible for constructing all Rockspec tables in the manner of the Queries and Results objects, and a type-checked Build.Opts tables for build options, since the number of attributes passed around was getting out of hand. This allowed a major cleanup in the luarocks.build, luarocks.fetch and luarocks.cmd.write_rockspec modules. | |||||
* | build: make "builtin" the default build.type | Hisham Muhammad | 2018-06-06 | 1 | -2/+8 | |
| | ||||||
* | build.builtin: Remove EXEWRAPPER sections (#812) | George Roman | 2018-06-05 | 1 | -83/+1 | |
| | ||||||
* | Let a explicitly given --tree override the wrapper's --project-tree | Hisham Muhammad | 2018-05-31 | 1 | -5/+5 | |
| | ||||||
* | init: create rockspec only if none found in the root dir | Hisham Muhammad | 2018-05-31 | 1 | -3/+13 | |
| | ||||||
* | init: only create wrappers if they don't already exist | Hisham Muhammad | 2018-05-31 | 1 | -6/+12 | |
| | ||||||
* | build: `luarocks build` with no arguments does `luarocks make` | Hisham Muhammad | 2018-05-31 | 1 | -3/+6 | |
| | ||||||
* | put project dir up front for module search paths, but enable it as default | Hisham Muhammad | 2018-05-31 | 1 | -11/+12 | |
| | ||||||
* | cfg: load_config_file is only used with one file at a time now | Hisham Muhammad | 2018-05-31 | 1 | -25/+18 | |
| | ||||||
* | do not detect a typical legacy $HOME as a project dir | Hisham Muhammad | 2018-05-31 | 1 | -7/+7 | |
| |