aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Release 3.0.1v3.0.1Hisham Muhammad2018-08-141-1/+1
|
* fs/unix/tools: Throw error if umask output is invaliddaurnimator2018-08-141-0/+3
|
* fs/unix/tools: Use 'umask -S', the only form of umask with a standardised ↵daurnimator2018-08-141-3/+12
| | | | output form
* fs/unix: hoist constants out of functiondaurnimator2018-08-141-15/+14
|
* deps: detect include/lua5x/lua.h (FreeBSD-style LUA_INCDIR)Hisham Muhammad2018-08-131-0/+2
| | | | This matches the change done in #872.
* add mkdir to the list of WIN_TOOLS used in non-binary Windows modeHisham Muhammad2018-08-111-1/+1
|
* which: find modules installed in a project treeHisham Muhammad2018-08-102-4/+7
| | | | Fixes #882.
* cfg: document cfg.initbefore-makefile-refactorHisham Muhammad2018-08-081-0/+15
|
* fs.win32: fix environment variable name in generated wrapperHisham Muhammad2018-08-051-1/+1
| | | | | | | | it is LUAROCKS_SYSCONFDIR, not LUAROCKS_SYSCONFIG Closes #459. Thanks @daurnimator for going through the old issues!
* Fix: do not detect .luarocks/config-5.x.lua and lua_modules as modulesHisham Muhammad2018-08-021-1/+3
| | | | | | | | | | | | | Running luarocks init a second time after deleting the rockspec was mis-detects .luarocks/config-5.x.lua as a module, creating an entry `["luarocks.config-5.3"] = ".luarocks/config-5.3.lua"` in `build.modules`. Same problem happened with modules under `lua_modules`. This excludes `.luarocks` and `lua_modules` from module detection. Includes a regression test. Closes #847.
* init: store Lua location in configHisham Muhammad2018-08-021-1/+28
| | | | | This way a user can use `--lua-dir` once, in `luarocks init` and that configuration will be active for the project.
* Do not rewrite path in util.cleanup_path if the desired version is a ↵Ryan Hartlage2018-08-011-1/+5
| | | | | | | | substring of the version (#868) * Do not rewrite path in util.cleanup_path if the desired version is a substring of the version * Improve test coverage for core.util.cleanup_path
* cmd: do not parse assignments after --Hisham Muhammad2018-07-261-1/+8
| | | | This allows using assignments with Busted in `luarocks test`.
* fs: fix rwx_to_number, add negated mask modeHisham Muhammad2018-07-261-11/+13
| | | | Fixes #856.
* fetch: propagate error when failing to make a temp dirHisham Muhammad2018-07-251-1/+4
|
* Make fun.partial run with Lua 5.1George Roman2018-07-241-1/+2
|
* cmd: report arch when crashingHisham Muhammad2018-07-231-1/+8
|
* cfg: set fs_use_modules off for the Windows binaryHisham Muhammad2018-07-231-0/+2
| | | | This should be a good way to set that automatically.
* fs: make zip/unzip/gunzip/bunzip2 respect `nil,err` protocolHisham Muhammad2018-07-232-11/+31
| | | | See #850.
* fs.copy: skip copying if the source and destination are the same filesGeorge Roman2018-07-221-0/+3
|
* cfg: do not crash when arg is not availableHisham Muhammad2018-07-221-3/+3
| | | | Fixes #852.
* fs.unix.tools: hotfix for touch formatHisham Muhammad2018-07-201-1/+1
|
* minor luacheck fixesHisham Muhammad2018-07-182-2/+3
|
* forward error messages from fs.unzipHisham Muhammad2018-07-182-4/+4
|
* fs: make unpack_archive platform-agnostic using specific fs functionsHisham Muhammad2018-07-184-190/+488
| | | | | | | Use luarocks.tools.tar for handling tar files, and add platform-specific functions fs.zip, fs.unzip, fs.bunzip2, fs.gunzip, giving them native implementations using Lua modules or alternative implementations using third-party tools.
* fs: support both table and number in set_timeHisham Muhammad2018-07-183-1/+32
|
* fs: add filter_fileHisham Muhammad2018-07-181-0/+30
|
* tar: compatibility improvement tweaksHisham Muhammad2018-07-181-24/+45
|
* cmd: only detect sysconfdir on UnixHisham Muhammad2018-07-181-3/+3
| | | | On the Windows single-binary this produces a weird "src/" path.
* cmd: fix displayed program name in single-binaryHisham Muhammad2018-07-181-1/+1
|
* cmd: portability fixes, don't check LuaJIT for Lua > 5.1Hisham Muhammad2018-07-181-3/+12
|
* cmd: support --lua-version without --lua-dirHisham Muhammad2018-07-181-1/+9
|
* cfg: detect Visual Studio Developer ConsoleHisham Muhammad2018-07-181-1/+8
|
* fun: add fun.partial and fun.flipHisham Muhammad2018-07-181-0/+37
|
* write_rockspec: detect ISC licenseHisham Muhammad2018-07-181-5/+11
|
* write_rockspec: detect git+ssh and hg+sshHisham Muhammad2018-07-181-4/+13
|
* build.command: don't export LD or CFLAGSHisham Muhammad2018-07-181-2/+2
| | | | | This avoids breakage with existing rockspecs that don't expect it, as seen when building the single-binary.
* Add general improvements to the fs moduleGeorge Roman2018-07-163-10/+25
|
* Update the behavior of fs.set_permissions on WindowsGeorge Roman2018-07-161-16/+41
|
* cfg: detect sysconfdir based on location of sourcesHisham Muhammad2018-07-101-20/+39
| | | | | | | | | | This will help a stand-alone luarocks.loader find the system config file without any environment variable or hardcoded value, in most common situations (i.e. unless a non-standard sysconfdir was given during installation -- but then a stand-alone luarocks.loader loaded by a third-party program probably shouldn't assume non-standard configurations anyway; and when they do they should set up their environment accordingly, preloading luarocks.core.hardcoded.)
* luarocks, luarocks-admin: load cfg first, for luarocks.loaderHisham Muhammad2018-07-102-0/+6
| | | | | Load luarocks.core.cfg first so that luarocks.loader knows it is running inside LuaRocks.
* md5: fix version checks of toolsHisham Muhammad2018-07-041-2/+2
|
* help: report LuaJIT versionHisham Muhammad2018-07-041-0/+3
|
* builtin: detect 'lib' as a directory of Lua sources as wellHisham Muhammad2018-07-041-1/+1
|
* deps: nicer message with Lua headers are not foundHisham Muhammad2018-07-041-0/+5
|
* config file: do not assume 'variable' table exists (for compat with LR2)Hisham Muhammad2018-07-041-3/+4
| | | | | | This change results in a default config that works in both LuaRocks 2 and 3. We do not promise a compatible configuration format, but it's nice to avoid unnecessary breakage if we can.
* cmd: dynamically load additional external commandsThijs Schreijer2018-07-044-10/+57
| | | | | | | Instead of a fixed list of commands, a dynamic list of modules residing within the `luarocks.cmd.external.<cmd_name>` in the Lua path will be dynamically added. This allows extending LuaRocks with additional commands. Same for `luarocks.admin.cmd.external.<cmd_name>`.
* fs: fix permissions when creating directories and wrappersHisham Muhammad2018-07-032-2/+2
| | | | | Newly created directories and wrappers need to be executable/traversable by all.
* Experimental Windows cross-compiled binary buildHisham Muhammad2018-07-022-1/+14
| | | | | | | | | | | | This commit consolidates the work that has been ongoing over the last few weeks in producing the single-binary builds of LuaRocks based on the new distribution model described in https://github.com/luarocks/luarocks/wiki/Project:-LuaRocks-new-distribution-model The single-binary build is in a good shape for Linux, it's a work-in-progress for Windows (binaries do build, but some work on the dependencies is still necessary), and is untested in macOS.
* test.busted: luacheck fixHisham Muhammad2018-07-011-2/+3
|