Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Remove duplication between write_rockspec and init | Paul Ouellette | 2019-08-01 | 2 | -36/+26 | |
| | | ||||||
| * | Add help option to subcommands | Paul Ouellette | 2019-08-01 | 26 | -26/+26 | |
| | | ||||||
| * | Remove program_name cmd.run_command argument | Paul Ouellette | 2019-08-01 | 3 | -6/+6 | |
| | | ||||||
| * | Move remaining commands to argparse | Paul Ouellette | 2019-08-01 | 27 | -568/+598 | |
| | | ||||||
| * | Move config command to argparse | Paul Ouellette | 2019-07-30 | 1 | -62/+59 | |
| | | ||||||
| * | Move build command to argparse | Paul Ouellette | 2019-07-29 | 7 | -94/+81 | |
| | | ||||||
| * | Use argparse for command line argument parsing | Paul Ouellette | 2019-07-29 | 7 | -432/+209 | |
| | | | | | | | | Supports main options and init and lint commands | |||||
* | | support RaptorJIT | Francois Perrad | 2019-08-23 | 1 | -1/+1 | |
|/ | | | | | | | | RaptorJIT is a fork of LuaJIT, where jit.version = 'RaptorJIT 1.0.0' this fix avoids a failure in find_lua_incdir() luajitver and prefix .. "/include/luajit-" .. luajitver:match("^(%d+%.%d+)"), --> attempt to concatenate a nil value | |||||
* | cfg: avoid setting LUA_LIBDIR and LUA_INCDIR too early | Hisham Muhammad | 2019-07-26 | 6 | -42/+57 | |
| | ||||||
* | only check for LUA_LIBDIR in platforms that need it | Hisham Muhammad | 2019-07-26 | 2 | -23/+28 | |
| | ||||||
* | detect LuaJIT dynamically | Hisham Muhammad | 2019-07-26 | 10 | -67/+103 | |
| | | | | | | | | This reduces the complexity of the interaction between build-time configuration, run-time auto-detection, and overrides via CLI flags. The LuaJIT version is now always auto-detected at run-time based on the Lua interpreter currently configured, based on the values of configuration options `variables.LUA_BINDIR` and `lua_interpreter`. | |||||
* | fs: fix initialization of platform-specific fallbacks | Hisham Muhammad | 2019-07-25 | 2 | -20/+28 | |
| | ||||||
* | fs: use Unix fork-free versions of is_file/is_dir in Linux and macOS only | Hisham Muhammad | 2019-07-25 | 5 | -43/+125 | |
| | | | | | | | | | | The Unix fork-free version relies on non-standard behaviors. It works on Linux, but it took a while for it to work properly in macOS, and it turns out that you can't really properly detect a directory in FreeBSD using io.open() because it can actually open a directory. To avoid filling in platform-specific tricks in luarocks/fs/unix.lua, which was never the goal, it's better to move the fork-free operations to Linux and macOS specific backends, and keep other Unices using the 'test' command. | |||||
* | Don't use project dir or default_lua_version with --force-config (#1054) | Hisham Muhammad | 2019-07-25 | 2 | -2/+11 | |
| | | | Fixes #1045. | |||||
* | Fix zero values in ziptime (#1056) | Ivan Naidenov | 2019-07-17 | 1 | -1/+6 | |
| | | | | If the rock was packed with luarocks then the time in it is set to zeros and this is not the case with the unix format can be removed when date given is added to zipwriter_open_new_file_in_zip | |||||
* | Add `--dir` option to the `new_version` command (#1014) | dwenegar | 2019-07-17 | 2 | -3/+15 | |
| | ||||||
* | Fix fs.is_dir detection on the Mac, take 2 | Hisham Muhammad | 2019-07-17 | 1 | -1/+4 | |
| | | | | | | | Thanks to @andyli for the report and pointer to the failing CI build. Fixes #104 | |||||
* | path: keep order of existing entries in PATH | Hisham Muhammad | 2019-07-17 | 2 | -7/+18 | |
| | | | | | | | | | | Implements suggestion by @FSMaxB: > Add an additional flag to util.cleanup_path that specifies if the cleanup > happens from the right or from the left. If append is true, clean up from the > left, otherwise clean up from the right. Fixes #763. | |||||
* | which: search in package.path and cpath as well | Hisham Muhammad | 2019-07-12 | 1 | -5/+20 | |
| | | | | Also, add some tests. | |||||
* | which: report error on missing argument | Hisham Muhammad | 2019-07-12 | 1 | -0/+3 | |
| | ||||||
* | init: add .luarocks to default .gitignore | Hisham Muhammad | 2019-07-10 | 1 | -1/+1 | |
| | ||||||
* | Enable use of lua-bz2 | Hisham Muhammad | 2019-06-06 | 1 | -1/+1 | |
| | | | | Fixes #1005. | |||||
* | Fix fs.is_dir and fs.is_file detection on the Mac | Hisham Muhammad | 2019-06-06 | 1 | -1/+1 | |
| | | | | Fixes #1021. | |||||
* | Always assume that zip and unzip are available on FreeBSD | Hisham Muhammad | 2019-06-05 | 3 | -7/+43 | |
| | | | | Fixes #1022 | |||||
* | Fix and reorganize Lua version detection | Hisham Muhammad | 2019-06-03 | 2 | -159/+163 | |
| | | | | | | | | | | Make it more robust when detecting the Lua version when working inside a project, and hopefully make the detection logic easier to track in the code. Reorganized code so that the `detected` table becomes internal to the `init_config` operation and only the regular `cfg` global table is used after that. Includes regression tests. | |||||
* | help: use absolute paths | Hisham Muhammad | 2019-06-03 | 1 | -5/+6 | |
| | ||||||
* | cmd: fix crash if LuaRocks is given a bad LUA_DIR | Hisham Muhammad | 2019-06-03 | 1 | -0/+2 | |
| | | | | Includes a regression test. | |||||
* | Merge PR #1012 | daurnimator | 2019-05-29 | 1 | -2/+10 | |
|\ | ||||||
| * | test: fix reporting failures on 'command' backend | Yaroslav Dynnikov | 2019-05-29 | 1 | -2/+10 | |
| | | ||||||
* | | avoid adding an empty entry to the RPATH | Peter van Dijk | 2019-05-28 | 1 | -1/+1 | |
|/ | | | | | | this avoids rpmbuild/check-rpaths erroring out like ERROR 0010: file '/...../mysql.so' contains an empty rpath in [/usr/lib64/mysql:] | |||||
* | cmd: fix handling of unconfigured paths in get_lua_version | Hisham Muhammad | 2019-05-07 | 1 | -8/+5 | |
| | ||||||
* | fix: handle errors in lua wrapper check | daurnimator | 2019-05-06 | 1 | -3/+10 | |
| | ||||||
* | refactor: reorganise code in get_lua_version | daurnimator | 2019-05-06 | 1 | -7/+10 | |
| | ||||||
* | fix: don't try to look in home_tree if not available | daurnimator | 2019-05-06 | 1 | -4/+5 | |
| | ||||||
* | Fix build of binaries | Hisham Muhammad | 2019-04-26 | 1 | -1/+1 | |
| | ||||||
* | bin wrapper: revert from LUA_INIT back to -e | Hisham Muhammad | 2019-04-19 | 2 | -14/+16 | |
| | | | | Fixes #980. | |||||
* | repos: prevent fs.move from failing | Hisham Muhammad | 2019-04-17 | 1 | -0/+2 | |
| | | | | | | | | | | | | Prevent fs.move from failing with ``` File already exists: /usr/local/share/lua/5.1/luasec_0_6_2-ssl.lua ``` when overwriting a stale file. This should have already been handled, but in case the manifest is out of sync for some reason this should make the behavior more smooth. | |||||
* | patch lockfile: do not rely on relative paths | Hisham Muhammad | 2019-04-16 | 1 | -2/+2 | |
| | | | | This should fix the Windows build. | |||||
* | fix: handle all-negative supported_platforms rockspec field | Leo P | 2019-04-16 | 1 | -1/+3 | |
| | ||||||
* | fix: correctly print current platforms | Leo P | 2019-04-16 | 1 | -1/+6 | |
| | ||||||
* | make: use a lockfile for patching on first `luarocks make` run | Hisham Muhammad | 2019-04-09 | 1 | -4/+17 | |
| | ||||||
* | init: robustness improvements | Hisham Muhammad | 2019-04-09 | 1 | -20/+44 | |
| | | | | | Check that Lua settings are usable and regenarate ./lua wrapper when safe. Should render --reset less necessary. | |||||
* | fs: separate cache_timeout and cache_fail_timeout | Hisham Muhammad | 2019-04-09 | 2 | -5/+10 | |
| | | | | Makes failure to search for manifest-5.4 cache for a full day. | |||||
* | search: add report and opt-out for checking other Lua versions | Hisham Muhammad | 2019-04-09 | 7 | -21/+35 | |
| | ||||||
* | persist: save_default_lua_version | Hisham Muhammad | 2019-04-09 | 2 | -10/+17 | |
| | | | | refactor into a separate function | |||||
* | Improve runtime detection of Lua interpreter | Hisham Muhammad | 2019-04-09 | 2 | -9/+39 | |
| | | | | Do not confuse the project ./lua wrapper with a valid interpreter. | |||||
* | cmd: Fix use of sysconfdir for default-lua-version.lua search | Hisham Muhammad | 2019-04-09 | 1 | -3/+3 | |
| | ||||||
* | init: rewrite project config when it's safe to do so | Hisham Muhammad | 2019-04-09 | 1 | -14/+18 | |
| | ||||||
* | config: add modes for reading, writing and unsetting individual entries | Hisham Muhammad | 2019-04-03 | 9 | -133/+357 | |
| | | | | | | | | | | | | | | | | | | | | Includes special config keys `lua_dir` and `lua_version`, which are essentially persistent versions of --lua-dir and --lua-version: * `lua_dir` writes a number of LUA_* variables and cfg.lua_interpreter in the current scope's config file. * `lua_version` writes default-lua-version.lua to the given scope. Also deprecates the "flag" versions for various getters: * `--lua-incdir`: use `luarocks config variables.LUA_INCDIR` * `--lua-libdir`: use `luarocks config variables.LUA_LIBDIR` * `--lua-ver`: use `luarocks config lua_version` * `--system-config`: use `luarocks config config_files.system.file` * `--user-config`: use `luarocks config config_files.user.file` * `--rock-trees`: use `luarocks config rocks_trees` | |||||
* | Add --global, improve relationship between project and --local | Hisham Muhammad | 2019-04-03 | 4 | -11/+18 | |
| |