summaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-08-28Release 3.2.0v3.2.0Hisham Muhammad1-2/+2
2019-08-28Ensure that LuaRocks always finds itselfHisham Muhammad1-2/+2
2019-08-28binary: fix check_lua_* callsHisham Muhammad1-1/+2
2019-08-28binary: update luasec to 0.8.1Hisham Muhammad2-4/+4
2019-08-28cmd: move cross-compilation hack to the right placeHisham Muhammad1-13/+12
2019-08-27Fix wrong versions in search failure error messagePaul Ouellette2-3/+5
2019-08-27Fix build --no-docPaul Ouellette1-0/+1
2019-08-23support RaptorJITFrancois Perrad1-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
2019-08-22Rewrap some help messages to 80 colsPaul Ouellette2-27/+24
2019-08-17Show config text only when run with no argumentsPaul Ouellette1-17/+11
2019-08-17writer.make_namespace_file: name has no namespacePaul Ouellette1-3/+1
2019-08-17Revert variable rename in cmd/make.luaPaul Ouellette1-6/+6
2019-08-17Simplify deps.get_deps_modePaul Ouellette1-5/+1
2019-08-17Allow using - or _ in commandsPaul Ouellette4-0/+6
2019-08-17Update to argparse 0.7.0Paul Ouellette1-50/+115
2019-08-17Set option descriptions using argumentPaul Ouellette2-2/+2
2019-08-17Use default -h flagPaul Ouellette26-26/+0
2019-08-17Hide --project-tree optionPaul Ouellette1-2/+2
2019-08-02Fix epilog not showing with `luarocks help`Paul Ouellette1-3/+11
Argparse will print the help when we call :parse(), so the epilog has to be set at that time. We also want to show an up to date config text when using `luarocks`, so update the epilog then.
2019-08-01Add some missing descriptionsPaul Ouellette4-4/+9
2019-08-01Remove unused --deps-mode option of test commandPaul Ouellette1-1/+0
2019-08-01Remove duplication between build and make commandsPaul Ouellette2-45/+29
2019-08-01Fix some failing testsPaul Ouellette9-25/+46
2019-08-01Add completion commandPaul Ouellette1-1/+33
2019-08-01Update .gitignorePaul Ouellette1-0/+2
2019-08-01Add argparsePaul Ouellette2-1/+2014
2019-08-01Rewrap some lines and fix some bugsPaul Ouellette9-28/+21
2019-08-01args["foo"] --> args.foo, flags --> argsPaul Ouellette25-178/+178
2019-08-01Misc. fixesPaul Ouellette4-6/+4
2019-08-01Remove duplication between write_rockspec and initPaul Ouellette2-36/+26
2019-08-01Add help option to subcommandsPaul Ouellette26-26/+26
2019-08-01Remove program_name cmd.run_command argumentPaul Ouellette3-6/+6
2019-08-01Move remaining commands to argparsePaul Ouellette27-568/+598
2019-07-30Move config command to argparsePaul Ouellette1-62/+59
2019-07-29Move build command to argparsePaul Ouellette7-94/+81
2019-07-29Use argparse for command line argument parsingPaul Ouellette7-432/+209
Supports main options and init and lint commands
2019-07-26cfg: avoid setting LUA_LIBDIR and LUA_INCDIR too earlyHisham Muhammad7-43/+59
2019-07-26GNUmakefile: copy config file prior to running 'luarocks init'Hisham Muhammad2-1/+3
As originally suggested by @blueyed in #1043.
2019-07-26configure: fix flag in error messageHisham Muhammad1-1/+1
2019-07-26only check for LUA_LIBDIR in platforms that need itHisham Muhammad2-23/+28
2019-07-26detect LuaJIT dynamicallyHisham Muhammad10-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`.
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.