Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | cmd: fallback to actual PATH search | Hisham Muhammad | 2020-01-14 | 1 | -1/+1 |
| | |||||
* | win32: fix split root for quoted absolute path handling | Hisham Muhammad | 2019-12-12 | 1 | -0/+34 |
| | |||||
* | Add quotes around usernames to handle usernames with space on Windows | Stephen Baynham | 2019-12-02 | 1 | -3/+3 |
| | |||||
* | Add --no-manifest flag to skip creating/updating a global manifest | daurnimator | 2019-11-30 | 1 | -1/+10 |
| | |||||
* | dependency pinning: luarocks.lock file and --pin flag | Hisham Muhammad | 2019-11-29 | 12 | -4/+222 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for pinning dependencies in projects and rocks: * Adds a new flag called `--pin` which creates a `luarocks.lock` when building a rock with `luarocks build` or `luarocks make`. This lock file contains the exact version numbers of every direct or indirect dependency of the rock (in other words, it is the transitive closure of the dependencies.) For `make`, the `luarocks.lock` file is created in the current directory. The lock file is also installed as part of the rock in its metadata directory alongside its rockspec. When using `--pin`, if a lock file already exists, it is ignored and overwritten. * When building a rock with `luarocks make`, if there is a `luarocks.lock` file in the current directory, the exact versions specified there will be used for resolving dependencies. * When building a rock with `luarocks build`, if there is a `luarocks.lock` file in root of its sources, the exact versions specified there will be used for resolving dependencies. * When installing a `.rock` file with `luarocks install`, if the rock contains a `luarocks.lock` file (i.e., if its dependencies were pinned with `--pin` when the rock was built), the exact versions specified there will be used for resolving dependencies. | ||||
* | refactor dependency scanning for reuse when building lockfile | Hisham Muhammad | 2019-11-29 | 1 | -1/+1 |
| | |||||
* | tests: simplify descriptions and set lazy setup/teardown | Hisham Muhammad | 2019-11-29 | 2 | -35/+35 |
| |