summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* core.cfg: fix sysconfdir detection trimming @ from debug.getinfoTomás Guisasola2019-01-081-0/+3
| | | | Signed-off-by: Hisham Muhammad <hisham@gobolinux.org>
* persist: handle keys that are keywords correctly.Hisham Muhammad2018-12-101-13/+62
| | | | Closes #947.
* fs.win32: fix setting permissions for all users (#943)FYP2018-11-211-1/+1
|
* only report on local cache ownership if we can check itHisham Muhammad2018-11-121-1/+5
| | | | Closes #901.
* Smarter default rockspec, based on current dir basenameHisham Muhammad2018-10-301-0/+8
| | | | | | | | | | | | This allows the following to work: ``` git clone https://github.com/example/foo cd foo luarocks download --rockspec bar luarocks test # will still use the foo rockspec # regardless of the presence of bar rockspec ```
* Unbundle pe-parser from LuaRocks sourcesHisham Muhammad2018-10-301-568/+0
|
* core.sysdetect: add fork-free OS detection (#938)Hisham Muhammad2018-10-302-35/+442
| | | | | Detect operating system and architecture without forking subprocesses, doing `file`-like detection reading data from well-known system executables.
* cmd: fix setting up deployment paths from a treeFYP2018-10-291-5/+5
| | | | | | (Amended with a regression test.) Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
* test: rename a misinterpretable vararg (#936)Oliver Vartiainen2018-10-221-7/+7
| | | Fixes #931
* pack: fix packing installed rockFYP2018-10-171-2/+2
|
* Fix dependency pattern matching for patterns including "+"Hisham Muhammad2018-10-011-1/+1
|
* Improve error messages when external tools are not foundHisham Muhammad2018-09-265-7/+23
| | | | | | Give informative error messages when external tools are not installed. In particular, give a nicer error on `luarocks pack` when 'zip' is not installed.
* write_rockspec: fix representation of Lua version dependencyHisham Muhammad2018-09-251-0/+7
| | | | | | | | The Lua version dependency specified with --lua-versions was using the internal table format. This commit ensures that it is stored in rockspecs using the string format. Includes a regression test.
* Remove unnecessary old check from fs.set_permissionsGeorge Roman2018-09-161-5/+3
|
* fs: fix target pathname in wrap_scriptHisham Muhammad2018-09-162-24/+21
| | | | | | The second argument is always the full pathname of the target script to be created (except for the wrapper suffix ".bat" on Windows).
* core.util: be more resilient when reading command outputsHisham Muhammad2018-09-161-2/+9
| | | | | | When luarocks.loader runs from within another process, we may end up getting an Interrupted signal when reading from a pipe, which is not handled by Lua.
* cfg: fix cosmetic improvement in LUA variableHisham Muhammad2018-09-111-1/+1
|
* fs.win32: fix wrapper generation when a folder with the same basename existsHisham Muhammad2018-09-111-2/+2
| | | | Fixes #908.
* builtin: autogenerate valid variable names for libraries with symbolsHisham Muhammad2018-09-071-1/+1
|
* cfg: cosmetic improvement in LUA variableHisham Muhammad2018-09-071-1/+1
|
* cfg: allow an empty rocks_trees in a config-5.x.lua fileHisham Muhammad2018-09-072-4/+3
| | | | This is so a project uses only the auto-inserted project tree
* init: add --reset optionHisham Muhammad2018-09-072-1/+18
| | | | | This allows for easier switching between Lua versions in a project directory.
* init: store cmd_interpreter and luajit_version in generated configHisham Muhammad2018-09-071-0/+6
|
* write_rockspec, init: rename --lua-version to --lua-versionsHisham Muhammad2018-09-073-4/+5
| | | | | | | Fixes conflict between the use of --lua-version in write_rockspec to list supported Lua versions in a rockspec (now renamed to --lua-versions) and the general --lua-version flag used to select a Lua interpreter.
* cmd: look for proper Lua version in $PATH when --lua-version is givenHisham Muhammad2018-09-071-15/+38
|
* builtin: improve skiplist for module autodetectionHisham Muhammad2018-09-071-18/+22
| | | | Skips spec/ files even when there is no src/
* repos: fix upgrade and downgrade of files when module names clashHisham Muhammad2018-09-042-187/+262
| | | | | | | | | This reworks the logic of upgrading/downgrading multiple versions of the same package (or different packages) when they have different files that resolve to the same module name (foo.lua and foo.so). For a concrete example, this was hitting LuaSec downgrades.
* show: base listing of modules on rock_manifestHisham Muhammad2018-09-033-26/+47
| | | | | | List modules based on rock_manifest, for better precision. Overall management of modules should be moved to use rock_manifest instead of the modules list from the general local manifest, but this is a good first step.
* 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
|