aboutsummaryrefslogtreecommitdiff
path: root/spec/util_spec.lua (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-07-26Report any error message encountered by ↵Rui Xia1-1/+4
`get_visual_studio_directory_from_vswhere`
2019-07-26Support VS tool chain 2017 or higherRui Xia1-4/+56
2019-07-25fs: fix initialization of platform-specific fallbacksHisham Muhammad2-20/+28
2019-07-25fs: use Unix fork-free versions of is_file/is_dir in Linux and macOS onlyHisham Muhammad5-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.
2019-07-25Don't use project dir or default_lua_version with --force-config (#1054)Hisham Muhammad2-2/+11
Fixes #1045.
2019-07-17Fix zero values in ziptime (#1056)Ivan Naidenov1-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
2019-07-17Add `--dir` option to the `new_version` command (#1014)dwenegar2-3/+15
2019-07-17Fix fs.is_dir detection on the Mac, take 2Hisham Muhammad1-1/+4
Thanks to @andyli for the report and pointer to the failing CI build. Fixes #104
2019-07-17path: keep order of existing entries in PATHHisham Muhammad3-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.
2019-07-15install.bat: always set SYSCONFDIRHisham Muhammad1-6/+1
Fixes #903.
2019-07-13GNUmakefile: unset CPATH variables in local wrapper tooHisham Muhammad1-2/+2
2019-07-12which: search in package.path and cpath as wellHisham Muhammad2-5/+67
Also, add some tests.
2019-07-12which: report error on missing argumentHisham Muhammad1-0/+3
2019-07-10init: add .luarocks to default .gitignoreHisham Muhammad1-1/+1
2019-06-06publishrelease: fix pull, update Unix instructionsHisham Muhammad1-1/+5
2019-06-06mergerelease: add error checkingHisham Muhammad1-6/+17
2019-06-06Release 3.1.3v3.1.3Hisham Muhammad5-7/+8
2019-06-06makedist: add branch commandHisham Muhammad1-0/+42
2019-06-06Add smoke testHisham Muhammad2-0/+74
2019-06-06Tests: add tests for fs.is_file and fs.is_dir with symlinksHisham Muhammad1-0/+36
Regression test for #1021.
2019-06-06Enable use of lua-bz2Hisham Muhammad2-2/+4
Fixes #1005.
2019-06-06fix(configure): remove extra leading '/'Simone Livieri1-1/+6
2019-06-06Fix fs.is_dir and fs.is_file detection on the MacHisham Muhammad1-1/+1
Fixes #1021.
2019-06-05Always assume that zip and unzip are available on FreeBSDHisham Muhammad3-7/+43
Fixes #1022
2019-06-03Fix and reorganize Lua version detectionHisham Muhammad3-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.
2019-06-03Tests: add a couple of tests for dir.normalizeHisham Muhammad1-6/+17
2019-06-03help: use absolute pathsHisham Muhammad1-5/+6
2019-06-03cmd: fix crash if LuaRocks is given a bad LUA_DIRHisham Muhammad2-0/+36
Includes a regression test.
2019-05-29test: fix reporting failures on 'command' backendYaroslav Dynnikov1-2/+10
2019-05-28avoid adding an empty entry to the RPATHPeter van Dijk1-1/+1
this avoids rpmbuild/check-rpaths erroring out like ERROR 0010: file '/...../mysql.so' contains an empty rpath in [/usr/lib64/mysql:]
2019-05-07Release 3.1.2Hisham Muhammad5-7/+8
2019-05-07Tests: add smoke testHisham Muhammad3-6/+77
2019-05-07cmd: fix handling of unconfigured paths in get_lua_versionHisham Muhammad1-8/+5