summaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-04-26Release 3.1.0v3.1.0Hisham Muhammad1-2/+2
2019-04-26Tests: add smoke testHisham Muhammad3-6/+77
2019-04-26Tests: cleanup signature before signingHisham Muhammad2-0/+4
2019-04-26Fix build of binariesHisham Muhammad2-1/+2
2019-04-19Tests: add test for fs.wrap_scriptHisham Muhammad1-13/+53
2019-04-19bin wrapper: revert from LUA_INIT back to -eHisham Muhammad2-14/+16
Fixes #980.
2019-04-17hardcode "windows" platform in Windows binary to help WineHisham Muhammad1-4/+3
platform autodetection at runtime is apparently failing on Wine, but we don't really need it when using `luarocks.exe`. Fixes #996.
2019-04-17travis: use pip (not pip2) with hererocksHisham Muhammad1-1/+1
2019-04-17repos: prevent fs.move from failingHisham Muhammad1-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.
2019-04-16patch lockfile: do not rely on relative pathsHisham Muhammad1-2/+2
This should fix the Windows build.
2019-04-16fix: handle all-negative supported_platforms rockspec fieldLeo P1-1/+3
2019-04-16fix: correctly print current platformsLeo P1-1/+6
2019-04-09make: use a lockfile for patching on first `luarocks make` runHisham Muhammad1-4/+17
2019-04-09spec/init_spec.lua: cleanup testHisham Muhammad1-3/+1
2019-04-09init: robustness improvementsHisham Muhammad1-20/+44
Check that Lua settings are usable and regenarate ./lua wrapper when safe. Should render --reset less necessary.
2019-04-09fs: separate cache_timeout and cache_fail_timeoutHisham Muhammad2-5/+10
Makes failure to search for manifest-5.4 cache for a full day.
2019-04-09search: add report and opt-out for checking other Lua versionsHisham Muhammad7-21/+35
2019-04-09persist: save_default_lua_versionHisham Muhammad2-10/+17
refactor into a separate function
2019-04-09Improve runtime detection of Lua interpreterHisham Muhammad2-9/+39
Do not confuse the project ./lua wrapper with a valid interpreter.
2019-04-09cmd: Fix use of sysconfdir for default-lua-version.lua searchHisham Muhammad1-3/+3
2019-04-09init: rewrite project config when it's safe to do soHisham Muhammad1-14/+18
2019-04-03config: add modes for reading, writing and unsetting individual entriesHisham Muhammad11-198/+534
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`
2019-04-03Add --global, improve relationship between project and --localHisham Muhammad4-11/+18
2019-04-03Simplify issue with superuser cache and avoid annoying messageHisham Muhammad6-68/+20
When running as root, simply switch to use /var/cache/luarocks as a cache.
2019-04-03manif: use temp dir if local cache can't be createdHisham Muhammad1-1/+6
2019-04-03util: more informative message: "Lua 5.x interpreter not found"Hisham Muhammad1-1/+4
2019-04-03fs.lua: cache failures as wellHisham Muhammad1-16/+34
2019-04-03Cache manifest more aggressivelyHisham Muhammad5-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
2019-04-03update to luacov 0.13.1 + cluacov 0.1.1Hisham Muhammad5-14/+17
2019-04-01util: fix refactor mistakeHisham Muhammad1-1/+1
2019-04-01Reorder Travis testsHisham Muhammad1-35/+35
2019-04-01install, build, make: add --verify and --sign optionsHisham Muhammad10-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.
2019-04-01Refactor opts_table from build to reuse in installHisham Muhammad2-34/+37
2019-04-01upload: add --sign optionHisham Muhammad2-3/+34
2019-04-01Add --sign option to `luarocks pack`Hisham Muhammad11-2/+53
* 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
2019-04-01tar: do not attempt to create directory more than onceHisham Muhammad1-3/+4
2019-04-01fs: versions of exists, is_file, is_dir for Unix and Windows that do not forkHisham Muhammad9-53/+97
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.
2019-04-01init: ensure --reset resets lua wrapper and config fileHisham Muhammad1-20/+24
2019-04-01fun: add find and memoize functionsHisham Muhammad1-0/+40
2019-04-01cmd: refactor detection code and improve detection of project dirHisham Muhammad4-172/+189