summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* feat: more informative reports no bad LUA_{INC,LIB}DIR configsHisham Muhammad2024-02-298-34/+225
|
* move luarocks.argparse to luarocks.vendor.argparseHisham Muhammad2024-02-292-1/+1
|
* deps: bump vendored dkjson to version 2.7Hisham Muhammad2024-02-291-9/+10
|
* do not check coverage or luacheck for vendored modulesHisham Muhammad2024-02-292-0/+7
| | | | | These are treated as dependencies, and are managed and tested by upstream.
* feat(fs): drop stale lock files (older than 1 hour)Hisham Muhammad2024-02-291-1/+9
| | | | This feature is dependent on lfs.
* feat: always reuse cached files younger than 10 secondsHisham Muhammad2024-02-292-7/+32
| | | | This feature depends on lfs being available.
* feat(build,install): only rebuild and reinstall when using --forceHisham Muhammad2024-02-296-3/+109
|
* fix: refuse to use luasec < 1.1Hisham Muhammad2024-02-281-2/+8
| | | | | | This can happen if a distro-installed luasec is too old. See #1302 #1309 #1316 #1360 #1422 #1500
* fix(windows): set LUALIB in install.batHisham Muhammad2024-02-281-4/+4
| | | | | LUA_LIBNAME is not used by LuaRocks anymore. LUALIB is the library name override on Windows.
* Merge branch '3.10.0'Hisham Muhammad2024-02-280-0/+0
|\
| * Release 3.10.0v3.10.0Hisham Muhammad2024-02-275-6/+7
|/
* binary: encode dependency order (luasec depends on luasocket)Hisham Muhammad2024-02-271-10/+22
|
* deps: bump luasocket and luasecHisham Muhammad2024-02-273-26/+145
|
* deps: bump zlib versionHisham Muhammad2024-02-271-1/+1
|
* binary: dkjson is no longer a dependency, it is now vendored inHisham Muhammad2024-02-271-1/+0
|
* fix: more resilient sysconfdir detectionHisham Muhammad2024-02-271-1/+5
|
* tests: reorganize and speed up unit testsHisham Muhammad2024-02-2746-736/+743
|
* fix(fs): make copy_contents behavior consistent on UnixHisham Muhammad2024-02-271-1/+4
| | | | Make it match the win32 behavior.
* fix(fs): make current_dir always return 1 arg onlyHisham Muhammad2024-02-2710-5/+11
|
* tests(fetch): do not use restserverHisham Muhammad2024-02-274-282/+309
|
* tests(build): split unit and integration filesHisham Muhammad2024-02-272-352/+369
| | | | use restserver only in integration part
* perf: speed up untar operationHisham Muhammad2024-02-271-4/+21
|
* tests: enable coverage on quick testsHisham Muhammad2024-02-261-2/+3
|
* fix: prevent LuaRocks from blocking lfs from removal on WindowsHisham Muhammad2024-02-261-0/+1
| | | | | | | | | | Prevent LuaRocks itself from using installed modules and blocking their files from removal. This is not an issue on luarocks.exe because its own copy of lfs is statically linked. We need to eventually switch to using that always, but for now this is a workable solution. Fixes #1428.
* tests: replace some more tests with quick testsHisham Muhammad2024-02-263-84/+287
|
* fix: if --lua-* flags are given, don't use the hardcoded pathsHisham Muhammad2024-02-252-15/+26
| | | | | | Thanks @Frityet for the help with troubleshooting! Fixes #1611
* fix: better normalization for paths and slashesHisham Muhammad2024-02-2323-384/+489
| | | | Fixes #1195.
* tests: introduce quick testsHisham Muhammad2024-02-2313-68/+706
|
* fix: handle error if test.command is not a string.Hisham Muhammad2024-02-212-0/+57
| | | | Fixes #1055.
* fix(init): do not write spurious .gitignore entriesHisham Muhammad2024-02-211-2/+2
|
* Makefile: make install target phonyHisham Muhammad2024-02-201-32/+30
| | | | Fixes #1038.
* ci: don't run luacheck twice on pull requestsHisham Muhammad2024-02-201-1/+5
|
* ci: run main tests on master branch as wellHisham Muhammad2024-02-201-1/+1
|
* fix: let runtime detection handle LUALIB filenameHisham Muhammad2024-02-202-5/+2
| | | | | | | | This should be more flexible than hardcoding a value that may become incorrect once people reconfigure their LuaRocks to point to another Lua distribution, especially on Windows. Fixes #905.
* improve and simplify Lua interpreter searchHisham Muhammad2024-02-206-41/+50
| | | | | | | * 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: don't show "no downloader" error for every mirrorHisham Muhammad2024-02-194-7/+10
|
* fix(init): inject project's package.(c)path in lua wrapper scriptHisham Muhammad2024-02-191-1/+20
| | | | Fixes #924.
* fix(init): use absolute paths when deletingHisham Muhammad2024-02-191-2/+2
| | | | Thanks to @imolein for pointing it out!
* fix(config): print boolean values correctly on Lua 5.1Hisham Muhammad2024-02-192-1/+19
|
* fix(lint): don't crash when missing descriptionHisham Muhammad2024-02-192-2/+16
|
* fix(build): don't look for Lua headers when installing pure-Lua rocksHisham Muhammad2024-02-196-174/+228
| | | | | | | This only applies to 'builtin' as we can't know about other modes, but this should be good enough. Fixes #1275.
* improve dependency match messageHisham Muhammad2024-02-191-1/+1
|
* fix(config): ensure directory exists when saving config fileHisham Muhammad2024-02-191-3/+10
| | | | Fixes #1261.
* when picking a default dependency dir, look for lib/ firstHisham Muhammad2024-02-192-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a rockspec specifies `external_dependencies` but those don't define a `library` entry, we don't have a way to check for the various possible `external_deps_subdirs` to find the one that contains the library. (But people really should specify a `library` entry there if they're linking the library!) Previously, we were just picking the first one from the list. On Windows, this meant that sometimes setting `MY_DEPENDENCY_DIR` would not be sufficient if the library was under `$MY_DEPENDENCY_DIR/lib`, because "" was picked first. We now improve the heuristic by putting "lib" first on the list and checking if it exists. I'm still keeping "bin" in the end of the list, because I think this is less common that a flat directory structure on Windows, so "lib" covers the Unix-like trees and "" covers flat trees (I don't remember why have "bin" as a library subdir on Windows, but if it's there then we must have seen it in the wild!) This means that "bin" will never get auto-picked by this heuristic, but it will be available for the cases where `library` _is_ set. While I'm at it, I also flipped the order of some Unix entries, so that this heuristic for these kind of rockspecs gets a nicer behavior on Unix systems that have things like `/usr/lib64` and `/usr/lib/<platform>` as well. Fixes #1041.
* fix(builtin): compile C modules in a temp directoryHisham Muhammad2024-02-192-6/+34
| | | | Fixes #1492.
* vendor in the dkjson dependencyHisham Muhammad2024-02-196-47/+750
| | | | | | Fixes #1243. Fixes #1168. Fixes #559.
* silence warning which only appears when rebuilding manifestHisham Muhammad2024-02-191-1/+0
| | | | Fixes #1446.
* normalize project dirHisham Muhammad2024-02-191-1/+1
| | | | | Avoid showing things like `/foo/bar/../.././lua_modules` when running `luarocks path`.
* feat(path): add --full flag for --lr-path and --lr-cpathHisham Muhammad2024-02-191-14/+26
| | | | | | | | | | | By default, `--lr-path` and `--lr-cpath` only include the paths derived by the LuaRocks rocks_trees. Using `--full` includes any other components defined in your system's package.(c)path, either via the running interpreter's default paths or via `LUA_(C)PATH(_5_x)` environment variables (in short, using `--full` produces the same lists as shown in the shell outputs of `luarocks path`. Closes #1351.
* fix program search when using absolute paths and .exe extensionsHisham Muhammad2024-02-192-1/+25
| | | | | | Fixes #1001. Thanks @badrazizi for the suggestion!