aboutsummaryrefslogtreecommitdiff
path: root/spec (follow)
Commit message (Collapse)AuthorAgeFilesLines
* vendor in the dkjson dependencyHisham Muhammad2024-02-192-17/+0
| | | | | | Fixes #1243. Fixes #1168. Fixes #559.
* drop cfg.lua_interpreter, use cfg.variables.LUAHisham Muhammad2024-02-181-38/+58
|
* feat(init): add --no-gitignore, --no-wrapper-scripts, --wrapper-dirHisham Muhammad2024-02-171-0/+63
| | | | Closes #1513.
* feat: auto-add luarocks-build-<build.type> build dependency (#1542)Hisham Muhammad2023-10-311-0/+126
|
* tests: auto-find interpreter at /usr/bin/lua (#1544)Hisham Muhammad2023-10-311-16/+33
|
* Fix problems in path normalisation algorithm (#1541)Aleksei Volkov2023-10-301-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 Chapuis2022-11-281-0/+9
| | | * fix `test --prepare` with non-busted rocks
* tests: run quiet curl in mock API callsHisham Muhammad2022-08-261-1/+1
|
* tests: only run luasocket rollback test on minimal environmentHisham Muhammad2022-08-261-22/+24
|
* tests: run full tests with LuaSecHisham Muhammad2022-08-262-5/+9
|
* tests: tests for util.variable_substitutionsHisham Muhammad2022-06-061-0/+25
|
* loader.which: new option for searching package.path and cpathHisham Muhammad2022-06-061-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_interpreterHisham Muhammad2022-06-061-9/+14
|
* tests: run tests on Lua 5.4 and LuaJIT 2.1Hisham Muhammad2022-04-1618-33/+220
|
* fs.unix: fallback for when $USER variable is unsetHisham Muhammad2022-04-161-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 overHisham Muhammad2022-04-1213-178/+291
|
* add DragonFly BSD supportHisham Muhammad2022-04-111-0/+2
|
* tests: don't download sailorHisham Muhammad2022-03-065-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 testsHisham Muhammad2022-03-067-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 ActionsHisham Muhammad2022-02-172-10/+10
|
* tests: wait longer for mock server to startHisham Muhammad2022-02-172-14/+29
|
* fix deployment on non-wrapped binaries (#1375)Hisham Muhammad2022-02-161-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 malformedHisham Muhammad2022-02-081-0/+5
|
* upload: support uploading pre-packaged .src.rock files (#1321)Hisham Muhammad2021-08-131-0/+8
| | | | | upload: support uploading pre-packaged .src.rock files Co-authored-by: daurnimator <quae@daurnimator.com>
* tests: bump luacov to 0.15.0Hisham Muhammad2021-07-225-14/+14
|
* luarocks test: add --prepare flag (#1314)Deepak Singh Rathore2021-06-221-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_HOMEHisham Muhammad2021-04-061-0/+25
|
* fix: pack: rockspec with a bare file in the urlHisham Muhammad2021-03-224-5/+87
|
* pack: check that directory inside archive actually existsHisham Muhammad2021-03-222-0/+25
|
* repos: double-check that all files from a rock are installedHisham Muhammad2021-03-191-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 whitespaceHisham Muhammad2021-03-1634-360/+359
|
* Support --pin and --only-deps together (#1222)Hisham Muhammad2020-09-231-0/+36
|
* tests: check that builtin auto-reads lua/ when modules table is emptyHisham Muhammad2020-07-211-0/+21
| | | | Test case for issue reported at https://github.com/Kong/kong/issues/5017
* Print more info about the location of LuaHisham Muhammad2020-04-221-5/+5
|
* Handle quoting at the application level (#1181)Hisham Muhammad2020-04-161-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.loaderHisham Muhammad2020-04-131-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 Muhammad2020-02-202-1/+17
|
* make: support --only-depsHisham Muhammad2020-02-141-0/+12
| | | | Closes #1156.
* tests: shorter descriptionsHisham Muhammad2020-02-1429-162/+156
|
* show: accept a substring when unambiguous and matches a single entryHisham Muhammad2020-02-131-0/+11
|
* fix downgrades of rocks containing directories (#1151)Hisham Muhammad2020-02-072-12/+14
| | | | Fixes #1141
* fs.lua: fix error message when source file is missingHisham Muhammad2020-02-051-1/+3
| | | | Fixes #1147.
* tests: drop LuaSec dependency on tests, use fixtures insteadHisham Muhammad2020-01-257-53/+77
|
* cmd: fallback to actual PATH searchHisham Muhammad2020-01-141-1/+1
|
* win32: fix split root for quoted absolute path handlingHisham Muhammad2019-12-121-0/+34
|
* Add quotes around usernames to handle usernames with space on WindowsStephen Baynham2019-12-021-3/+3
|
* Add --no-manifest flag to skip creating/updating a global manifestdaurnimator2019-11-301-1/+10
|
* dependency pinning: luarocks.lock file and --pin flagHisham Muhammad2019-11-2912-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 lockfileHisham Muhammad2019-11-291-1/+1
|
* tests: simplify descriptions and set lazy setup/teardownHisham Muhammad2019-11-292-35/+35
|