summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Move remaining commands to argparsePaul Ouellette2019-08-0127-568/+598
| |
| * Move config command to argparsePaul Ouellette2019-07-301-62/+59
| |
| * Move build command to argparsePaul Ouellette2019-07-297-94/+81
| |
| * Use argparse for command line argument parsingPaul Ouellette2019-07-297-432/+209
| | | | | | | | Supports main options and init and lint commands
* | support RaptorJITFrancois Perrad2019-08-231-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 earlyHisham Muhammad2019-07-267-43/+59
|
* GNUmakefile: copy config file prior to running 'luarocks init'Hisham Muhammad2019-07-262-1/+3
| | | | As originally suggested by @blueyed in #1043.
* configure: fix flag in error messageHisham Muhammad2019-07-261-1/+1
|
* only check for LUA_LIBDIR in platforms that need itHisham Muhammad2019-07-262-23/+28
|
* detect LuaJIT dynamicallyHisham Muhammad2019-07-2610-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`.
* Report any error message encountered by ↵Rui Xia2019-07-261-1/+4
| | | | `get_visual_studio_directory_from_vswhere`
* Support VS tool chain 2017 or higherRui Xia2019-07-261-4/+56
|
* fs: fix initialization of platform-specific fallbacksHisham Muhammad2019-07-252-20/+28
|
* fs: use Unix fork-free versions of is_file/is_dir in Linux and macOS onlyHisham Muhammad2019-07-255-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 Muhammad2019-07-252-2/+11
| | | Fixes #1045.
* Fix zero values in ziptime (#1056)Ivan Naidenov2019-07-171-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)dwenegar2019-07-172-3/+15
|
* Fix fs.is_dir detection on the Mac, take 2Hisham Muhammad2019-07-171-1/+4
| | | | | | | Thanks to @andyli for the report and pointer to the failing CI build. Fixes #104
* path: keep order of existing entries in PATHHisham Muhammad2019-07-173-12/+41
| | | | | | | | | | 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.
* install.bat: always set SYSCONFDIRHisham Muhammad2019-07-151-6/+1
| | | | Fixes #903.
* GNUmakefile: unset CPATH variables in local wrapper tooHisham Muhammad2019-07-131-2/+2
|
* which: search in package.path and cpath as wellHisham Muhammad2019-07-122-5/+67
| | | | Also, add some tests.
* which: report error on missing argumentHisham Muhammad2019-07-121-0/+3
|
* init: add .luarocks to default .gitignoreHisham Muhammad2019-07-101-1/+1
|
* publishrelease: fix pull, update Unix instructionsHisham Muhammad2019-06-061-1/+5
|
* Merge branch '3.1.3'Hisham Muhammad2019-06-061-1/+1
|\
| * Release 3.1.3v3.1.3Hisham Muhammad2019-06-065-7/+8
| |
* | mergerelease: add error checkingHisham Muhammad2019-06-061-6/+17
|/
* makedist: add branch commandHisham Muhammad2019-06-061-0/+42
|
* Add smoke testHisham Muhammad2019-06-062-0/+74
|
* Tests: add tests for fs.is_file and fs.is_dir with symlinksHisham Muhammad2019-06-061-0/+36
| | | | Regression test for #1021.
* Enable use of lua-bz2Hisham Muhammad2019-06-062-2/+4
| | | | Fixes #1005.
* fix(configure): remove extra leading '/'Simone Livieri2019-06-061-1/+6
|
* Fix fs.is_dir and fs.is_file detection on the MacHisham Muhammad2019-06-061-1/+1
| | | | Fixes #1021.
* Always assume that zip and unzip are available on FreeBSDHisham Muhammad2019-06-053-7/+43
| | | | Fixes #1022
* Fix and reorganize Lua version detectionHisham Muhammad2019-06-033-159/+233
| | | | | | | | | | 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.
* Tests: add a couple of tests for dir.normalizeHisham Muhammad2019-06-031-6/+17
|
* help: use absolute pathsHisham Muhammad2019-06-031-5/+6
|
* cmd: fix crash if LuaRocks is given a bad LUA_DIRHisham Muhammad2019-06-032-0/+36
| | | | Includes a regression test.
* Merge PR #1012daurnimator2019-05-291-2/+10
|\
| * test: fix reporting failures on 'command' backendYaroslav Dynnikov2019-05-291-2/+10
| |
* | Merge PR #1019daurnimator2019-05-281-1/+1
|\ \ | |/ |/|
| * avoid adding an empty entry to the RPATHPeter van Dijk2019-05-281-1/+1
|/ | | | | | this avoids rpmbuild/check-rpaths erroring out like ERROR 0010: file '/...../mysql.so' contains an empty rpath in [/usr/lib64/mysql:]
* Merge branch '3.1.2'Hisham Muhammad2019-05-070-0/+0
|\
| * Release 3.1.2Hisham Muhammad2019-05-075-7/+8
| |
| * Tests: add smoke testHisham Muhammad2019-05-073-6/+77
|/
* cmd: fix handling of unconfigured paths in get_lua_versionHisham Muhammad2019-05-071-8/+5
|
* add publishrelease scriptHisham Muhammad2019-05-061-0/+197
|
* Add mergerelease scriptHisham Muhammad2019-05-061-0/+22
|
* Merge branch '3.1.1'Hisham Muhammad2019-05-060-0/+0
|\