Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | feat: better error message when lacking permissionsfeat-better-perm-message | Hisham Muhammad | 2024-02-29 | 1 | -7/+28 |
| | | | | | | The lock error message has clobbered the check_command_permissions error message. This is an interim solution, but we should probably move the permissions check further up for a more informative error. | ||||
* | tests: mark a couple of problematic tests as pending | Hisham Muhammad | 2024-02-29 | 1 | -2/+2 |
| | |||||
* | tests: speed up and simplify | Hisham Muhammad | 2024-02-29 | 23 | -280/+491 |
| | |||||
* | tests: disable luacov runner tick | Hisham Muhammad | 2024-02-29 | 12 | -36/+23 |
| | |||||
* | feat: more informative reports no bad LUA_{INC,LIB}DIR configs | Hisham Muhammad | 2024-02-29 | 5 | -19/+132 |
| | |||||
* | do not check coverage or luacheck for vendored modules | Hisham Muhammad | 2024-02-29 | 1 | -0/+3 |
| | | | | | These are treated as dependencies, and are managed and tested by upstream. | ||||
* | feat(build,install): only rebuild and reinstall when using --force | Hisham Muhammad | 2024-02-29 | 2 | -0/+82 |
| | |||||
* | tests: reorganize and speed up unit tests | Hisham Muhammad | 2024-02-27 | 46 | -736/+743 |
| | |||||
* | fix(fs): make current_dir always return 1 arg only | Hisham Muhammad | 2024-02-27 | 9 | -0/+0 |
| | |||||
* | tests(fetch): do not use restserver | Hisham Muhammad | 2024-02-27 | 4 | -282/+309 |
| | |||||
* | tests(build): split unit and integration files | Hisham Muhammad | 2024-02-27 | 2 | -352/+369 |
| | | | | use restserver only in integration part | ||||
* | tests: enable coverage on quick tests | Hisham Muhammad | 2024-02-26 | 1 | -2/+3 |
| | |||||
* | tests: replace some more tests with quick tests | Hisham Muhammad | 2024-02-26 | 3 | -84/+287 |
| | |||||
* | fix: better normalization for paths and slashes | Hisham Muhammad | 2024-02-23 | 11 | -292/+367 |
| | | | | Fixes #1195. | ||||
* | tests: introduce quick tests | Hisham Muhammad | 2024-02-23 | 11 | -62/+694 |
| | |||||
* | fix: handle error if test.command is not a string. | Hisham Muhammad | 2024-02-21 | 1 | -0/+51 |
| | | | | Fixes #1055. | ||||
* | improve and simplify Lua interpreter search | Hisham Muhammad | 2024-02-20 | 1 | -1/+1 |
| | | | | | | | * do not proceed with commands if interpreter is not found * begin retiring LUA_DIR and LUA_BINDIR, and promote LUA as the main way to setup the interpreter location (from which we derive the rest) | ||||
* | fix(config): print boolean values correctly on Lua 5.1 | Hisham Muhammad | 2024-02-19 | 1 | -0/+14 |
| | |||||
* | fix(lint): don't crash when missing description | Hisham Muhammad | 2024-02-19 | 1 | -0/+14 |
| | |||||
* | fix(build): don't look for Lua headers when installing pure-Lua rocks | Hisham Muhammad | 2024-02-19 | 2 | -117/+143 |
| | | | | | | | This only applies to 'builtin' as we can't know about other modes, but this should be good enough. Fixes #1275. | ||||
* | vendor in the dkjson dependency | Hisham Muhammad | 2024-02-19 | 2 | -17/+0 |
| | | | | | | Fixes #1243. Fixes #1168. Fixes #559. | ||||
* | drop cfg.lua_interpreter, use cfg.variables.LUA | Hisham Muhammad | 2024-02-18 | 1 | -38/+58 |
| | |||||
* | feat(init): add --no-gitignore, --no-wrapper-scripts, --wrapper-dir | Hisham Muhammad | 2024-02-17 | 1 | -0/+63 |
| | | | | Closes #1513. | ||||
* | feat: auto-add luarocks-build-<build.type> build dependency (#1542) | Hisham Muhammad | 2023-10-31 | 1 | -0/+126 |
| | |||||
* | tests: auto-find interpreter at /usr/bin/lua (#1544) | Hisham Muhammad | 2023-10-31 | 1 | -16/+33 |
| | |||||
* | Fix problems in path normalisation algorithm (#1541) | Aleksei Volkov | 2023-10-30 | 1 | -0/+8 |
| | | | | | | | | Current implementation of path normalisation contains various flaws: - Trailing `.` and `..` at the end of path don't get normalised, - Path `/` turns into an empty string after normalisation. This patch changes implementation of normalisation to fix these. | ||||
* | fix `test --prepare` with non-busted rocks (#1453) | Pierre Chapuis | 2022-11-28 | 1 | -0/+9 |
| | | | * fix `test --prepare` with non-busted rocks | ||||
* | tests: run quiet curl in mock API calls | Hisham Muhammad | 2022-08-26 | 1 | -1/+1 |
| | |||||
* | tests: only run luasocket rollback test on minimal environment | Hisham Muhammad | 2022-08-26 | 1 | -22/+24 |
| | |||||
* | tests: run full tests with LuaSec | Hisham Muhammad | 2022-08-26 | 2 | -5/+9 |
| | |||||
* | tests: tests for util.variable_substitutions | Hisham Muhammad | 2022-06-06 | 1 | -0/+25 |
| | |||||
* | loader.which: new option for searching package.path and cpath | Hisham Muhammad | 2022-06-06 | 1 | -7/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new second argument, `where`, a string which indicates places to search for the module. If `where` contains "l", it will search using the LuaRocks loader; if it contains "p", it will look in the filesystem using package.path and package.cpath. You can use both at the same time. If successful, it will return four values. * If found using the LuaRocks loader, it will return: * filename of the module (eg. "/usr/local/lib/lua/5.1/socket/core.so"), * rock name * rock version * "l" to indicate the match comes from the loader. * If found scanning package.path and package.cpath, it will return: * filename of the module (eg. "/usr/local/lib/lua/5.1/socket/core.so"), * "path" or "cpath" * nil * "p" to indicate the match comes from scanning package.path and cpath. If unsuccessful, nothing is returned. | ||||
* | tests: accept full path in -Xhelper lua_interpreter | Hisham Muhammad | 2022-06-06 | 1 | -9/+14 |
| | |||||
* | tests: run tests on Lua 5.4 and LuaJIT 2.1 | Hisham Muhammad | 2022-04-16 | 18 | -33/+220 |
| | |||||
* | fs.unix: fallback for when $USER variable is unset | Hisham Muhammad | 2022-04-16 | 1 | -1/+3 |
| | | | | | | Also, declare Unix version of current_user in luarocks.fs.unix.tools, so that the pure-Lua version based on LuaPosix takes precedence when available. | ||||
* | tests: avoid repeated hardcoded package version numbers all over | Hisham Muhammad | 2022-04-12 | 13 | -178/+291 |
| | |||||
* | add DragonFly BSD support | Hisham Muhammad | 2022-04-11 | 1 | -0/+2 |
| | |||||
* | tests: don't download sailor | Hisham Muhammad | 2022-03-06 | 5 | -5/+49 |
| | | | | | | Use a small fixture instead to test the regression for sailorproject/sailor#138 Sailor was the largest rock downloaded by the test suite, so this should improve download times. | ||||
* | tests: don't use validate-args rockspec in tests | Hisham Muhammad | 2022-03-06 | 7 | -49/+36 |
| | | | | | | | | We only used the rockspec in testing, but since the app it refers to is GPL-3, it could cause confusion among users, so let's just drop it from the test suite. Closes #1387. | ||||
* | tests: remove Travis CI, add Github Actions | Hisham Muhammad | 2022-02-17 | 2 | -10/+10 |
| | |||||
* | tests: wait longer for mock server to start | Hisham Muhammad | 2022-02-17 | 2 | -14/+29 |
| | |||||
* | fix deployment on non-wrapped binaries (#1375) | Hisham Muhammad | 2022-02-16 | 1 | -2/+2 |
| | | | | | | | * fix deployment on non-wrapped binaries Fixes #1374. * Do not add .bat extension inside win32.wrap_script | ||||
* | Fix crash when --lua-version is malformed | Hisham Muhammad | 2022-02-08 | 1 | -0/+5 |
| | |||||
* | upload: support uploading pre-packaged .src.rock files (#1321) | Hisham Muhammad | 2021-08-13 | 1 | -0/+8 |
| | | | | | upload: support uploading pre-packaged .src.rock files Co-authored-by: daurnimator <quae@daurnimator.com> | ||||
* | tests: bump luacov to 0.15.0 | Hisham Muhammad | 2021-07-22 | 5 | -14/+14 |
| | |||||
* | luarocks test: add --prepare flag (#1314) | Deepak Singh Rathore | 2021-06-22 | 1 | -0/+26 |
| | | | | | | * Added prepare flag in test command * Added test for prepare flag in spec/test_spec.lua Fixes #1303 | ||||
* | tests: add basic test for XDG_CONFIG_HOME | Hisham Muhammad | 2021-04-06 | 1 | -0/+25 |
| | |||||
* | fix: pack: rockspec with a bare file in the url | Hisham Muhammad | 2021-03-22 | 4 | -5/+87 |
| | |||||
* | pack: check that directory inside archive actually exists | Hisham Muhammad | 2021-03-22 | 2 | -0/+25 |
| | |||||
* | repos: double-check that all files from a rock are installed | Hisham Muhammad | 2021-03-19 | 1 | -1/+34 |
| | | | | | | | Ensure that `luarocks` fails if an installation does not successfully deploy all files registered in the `rock_manifest`. See #1276. |