summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Release 3.1.3v3.1.3Hisham Muhammad2019-06-061-2/+2
|
* Enable use of lua-bz2Hisham Muhammad2019-06-061-1/+1
| | | | Fixes #1005.
* 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-032-159/+163
| | | | | | | | | | 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.
* help: use absolute pathsHisham Muhammad2019-06-031-5/+6
|
* cmd: fix crash if LuaRocks is given a bad LUA_DIRHisham Muhammad2019-06-031-0/+2
| | | | Includes a regression test.
* Merge PR #1012daurnimator2019-05-291-2/+10
|\
| * test: fix reporting failures on 'command' backendYaroslav Dynnikov2019-05-291-2/+10
| |
* | 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:]
* cmd: fix handling of unconfigured paths in get_lua_versionHisham Muhammad2019-05-071-8/+5
|
* fix: handle errors in lua wrapper checkdaurnimator2019-05-061-3/+10
|
* refactor: reorganise code in get_lua_versiondaurnimator2019-05-061-7/+10
|
* fix: don't try to look in home_tree if not availabledaurnimator2019-05-061-4/+5
|
* Fix build of binariesHisham Muhammad2019-04-261-1/+1
|
* bin wrapper: revert from LUA_INIT back to -eHisham Muhammad2019-04-192-14/+16
| | | | Fixes #980.
* repos: prevent fs.move from failingHisham Muhammad2019-04-171-0/+2
| | | | | | | | | | | | Prevent fs.move from failing with ``` File already exists: /usr/local/share/lua/5.1/luasec_0_6_2-ssl.lua ``` when overwriting a stale file. This should have already been handled, but in case the manifest is out of sync for some reason this should make the behavior more smooth.
* patch lockfile: do not rely on relative pathsHisham Muhammad2019-04-161-2/+2
| | | | This should fix the Windows build.
* fix: handle all-negative supported_platforms rockspec fieldLeo P2019-04-161-1/+3
|
* fix: correctly print current platformsLeo P2019-04-161-1/+6
|
* make: use a lockfile for patching on first `luarocks make` runHisham Muhammad2019-04-091-4/+17
|
* init: robustness improvementsHisham Muhammad2019-04-091-20/+44
| | | | | Check that Lua settings are usable and regenarate ./lua wrapper when safe. Should render --reset less necessary.
* fs: separate cache_timeout and cache_fail_timeoutHisham Muhammad2019-04-092-5/+10
| | | | Makes failure to search for manifest-5.4 cache for a full day.
* search: add report and opt-out for checking other Lua versionsHisham Muhammad2019-04-097-21/+35
|
* persist: save_default_lua_versionHisham Muhammad2019-04-092-10/+17
| | | | refactor into a separate function
* Improve runtime detection of Lua interpreterHisham Muhammad2019-04-092-9/+39
| | | | Do not confuse the project ./lua wrapper with a valid interpreter.
* cmd: Fix use of sysconfdir for default-lua-version.lua searchHisham Muhammad2019-04-091-3/+3
|
* init: rewrite project config when it's safe to do soHisham Muhammad2019-04-091-14/+18
|
* config: add modes for reading, writing and unsetting individual entriesHisham Muhammad2019-04-039-133/+357
| | | | | | | | | | | | | | | | | | | | Includes special config keys `lua_dir` and `lua_version`, which are essentially persistent versions of --lua-dir and --lua-version: * `lua_dir` writes a number of LUA_* variables and cfg.lua_interpreter in the current scope's config file. * `lua_version` writes default-lua-version.lua to the given scope. Also deprecates the "flag" versions for various getters: * `--lua-incdir`: use `luarocks config variables.LUA_INCDIR` * `--lua-libdir`: use `luarocks config variables.LUA_LIBDIR` * `--lua-ver`: use `luarocks config lua_version` * `--system-config`: use `luarocks config config_files.system.file` * `--user-config`: use `luarocks config config_files.user.file` * `--rock-trees`: use `luarocks config rocks_trees`
* Add --global, improve relationship between project and --localHisham Muhammad2019-04-034-11/+18
|
* Simplify issue with superuser cache and avoid annoying messageHisham Muhammad2019-04-036-68/+20
| | | | | When running as root, simply switch to use /var/cache/luarocks as a cache.
* manif: use temp dir if local cache can't be createdHisham Muhammad2019-04-031-1/+6
|
* util: more informative message: "Lua 5.x interpreter not found"Hisham Muhammad2019-04-031-1/+4
|
* fs.lua: cache failures as wellHisham Muhammad2019-04-031-16/+34
|
* Cache manifest more aggressivelyHisham Muhammad2019-04-035-28/+65
| | | | | | | * Introduce cache_timeout config option (default 10 seconds) * Do not re-check for the last-modified time of a file to be downloaded for cfg.cache_timeout seconds * Do not re-unzip if zip file was fetched from cache
* util: fix refactor mistakeHisham Muhammad2019-04-011-1/+1
|
* install, build, make: add --verify and --sign optionsHisham Muhammad2019-04-0110-95/+236
| | | | | | The --verify options of build and make check the signature of rockspec and src.rock files; the --sign option is meant to be used alongside --pack-binary-rock.
* Refactor opts_table from build to reuse in installHisham Muhammad2019-04-012-34/+37
|
* upload: add --sign optionHisham Muhammad2019-04-011-2/+29
|
* Add --sign option to `luarocks pack`Hisham Muhammad2019-04-014-0/+39
| | | | | | | | * Introduce a new module, `luarocks.signing` * Add `--sign` option to `luarocks pack`, which produces a detached GPG signature * Includes a basic test, along with some fixtures with a password-less GPG key
* tar: do not attempt to create directory more than onceHisham Muhammad2019-04-011-3/+4
|
* fs: versions of exists, is_file, is_dir for Unix and Windows that do not forkHisham Muhammad2019-04-016-50/+85
| | | | | | | | Implements versions of exists, is_file, is_dir for POSIX and Windows using io.open only, based on the semantics of their error codes on these platforms. Drops the dependency on TEST.EXE on Windows.
* init: ensure --reset resets lua wrapper and config fileHisham Muhammad2019-04-011-20/+24
|
* fun: add find and memoize functionsHisham Muhammad2019-04-011-0/+40
|
* cmd: refactor detection code and improve detection of project dirHisham Muhammad2019-04-013-171/+186
|
* upload: accept non-200 codesHisham Muhammad2019-03-291-3/+4
| | | | | | | | | This will try to JSON-decode any response, and if it succeds, will return it regardless of status code. If the body cannot be JSON-decoded, then the status code and URL are returned as an error. Fixes #975.
* Remove spurious argumentsHisham Muhammad2019-03-181-2/+2
|
* core.cfg: produce quoted values in tool variables for WindowsHisham Muhammad2019-03-154-21/+21
| | | | | | | | | | | | Alternative solution to the problem described in #968. We can't use #968 because on Unix sometimes people set the value of those variables so they include arguments (even LuaRocks does it by default, setting `UNZIP="unzip -n"`). Now that the variables are quoted, we stop auto-quoting them in `luarocks.fs`. I expect this change to have to practical impact on Unix, where paths with spaces are uncommon (those can use explicit quotes in their values).
* deps: improve performance of external dependency checksHisham Muhammad2019-03-151-16/+33
| | | | | This is especially important now that the Lua library paths are detected using the dependency check machinery.
* cmd: improve detection of project dirHisham Muhammad2019-03-151-28/+31
| | | | | Perform detection of project dir earlier, so we can inspect what Lua version its config uses.