| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | defer initializationpre-quick-tests | Hisham Muhammad | 2024-02-21 | 1 | -6/+18 |
| | | |||||
| * | tests: introduce quick tests | Hisham Muhammad | 2024-02-21 | 11 | -62/+682 |
| | | |||||
| * | 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. | ||||
| * | editorconfig: trim trailing whitespace | Hisham Muhammad | 2021-03-16 | 34 | -360/+359 |
| | | |||||
| * | Support --pin and --only-deps together (#1222) | Hisham Muhammad | 2020-09-23 | 1 | -0/+36 |
| | | |||||
| * | tests: check that builtin auto-reads lua/ when modules table is empty | Hisham Muhammad | 2020-07-21 | 1 | -0/+21 |
| | | | | | Test case for issue reported at https://github.com/Kong/kong/issues/5017 | ||||
| * | Print more info about the location of Lua | Hisham Muhammad | 2020-04-22 | 1 | -5/+5 |
| | | |||||
| * | Handle quoting at the application level (#1181) | Hisham Muhammad | 2020-04-16 | 1 | -0/+4 |
| | | | | | | | | This is done to support Windows. Unix handles quoting at the shell level. While quotes are technically valid as part of Unix names, I don't expect this pathological case to be something we need to support. Closes #1173. | ||||
| * | fix regression in dependency matching of luarocks.loader | Hisham Muhammad | 2020-04-13 | 1 | -0/+64 |
| | | | | | | | | | | | | | Regression introduced in https://github.com/luarocks/luarocks/commit/65c417e0ecda55f44c691df032163a8c08f0b52a Thanks to @lhemkendreis for the detailed description and suggested fix, which was applied here! Added a regression test which exercises dependency matching. Closes #1175. | ||||
| * | fs: always check for failure of fs.which_tool (#1157) | Hisham Muhammad | 2020-02-20 | 2 | -1/+17 |
| | | |||||
| * | make: support --only-deps | Hisham Muhammad | 2020-02-14 | 1 | -0/+12 |
| | | | | | Closes #1156. | ||||
| * | tests: shorter descriptions | Hisham Muhammad | 2020-02-14 | 29 | -162/+156 |
| | | |||||
| * | show: accept a substring when unambiguous and matches a single entry | Hisham Muhammad | 2020-02-13 | 1 | -0/+11 |
| | | |||||
| * | fix downgrades of rocks containing directories (#1151) | Hisham Muhammad | 2020-02-07 | 2 | -12/+14 |
| | | | | | Fixes #1141 | ||||
| * | fs.lua: fix error message when source file is missing | Hisham Muhammad | 2020-02-05 | 1 | -1/+3 |
| | | | | | Fixes #1147. | ||||
| * | tests: drop LuaSec dependency on tests, use fixtures instead | Hisham Muhammad | 2020-01-25 | 7 | -53/+77 |
| | | |||||
