aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-29fix: on windows environment variables are passed with trailing spacetest-windows-spacesSewbacca1-1/+1
2024-02-29tests: use paths with spaces when testing on WindowsHisham Muhammad1-1/+7
This should force us to test our compatibility with paths with spaces all over.
2024-02-29tests: mark a couple of problematic tests as pendingHisham Muhammad1-2/+2
2024-02-29tests: speed up and simplifyHisham Muhammad24-295/+507
2024-02-29tests: disable luacov runner tickHisham Muhammad12-36/+23
2024-02-29ci: skip branches with PRs on AppVeyorHisham Muhammad1-0/+1
2024-02-29feat: more informative reports no bad LUA_{INC,LIB}DIR configsHisham Muhammad8-34/+225
2024-02-29move luarocks.argparse to luarocks.vendor.argparseHisham Muhammad2-1/+1
2024-02-29deps: bump vendored dkjson to version 2.7Hisham Muhammad1-9/+10
2024-02-29do not check coverage or luacheck for vendored modulesHisham Muhammad2-0/+7
These are treated as dependencies, and are managed and tested by upstream.
2024-02-29feat(fs): drop stale lock files (older than 1 hour)Hisham Muhammad1-1/+9
This feature is dependent on lfs.
2024-02-29feat: always reuse cached files younger than 10 secondsHisham Muhammad2-7/+32
This feature depends on lfs being available.
2024-02-29feat(build,install): only rebuild and reinstall when using --forceHisham Muhammad6-3/+109
2024-02-28fix: refuse to use luasec < 1.1Hisham Muhammad1-2/+8
This can happen if a distro-installed luasec is too old. See #1302 #1309 #1316 #1360 #1422 #1500
2024-02-28fix(windows): set LUALIB in install.batHisham Muhammad1-4/+4
LUA_LIBNAME is not used by LuaRocks anymore. LUALIB is the library name override on Windows.
2024-02-27Release 3.10.0v3.10.0Hisham Muhammad5-6/+7
2024-02-27binary: encode dependency order (luasec depends on luasocket)Hisham Muhammad1-10/+22
2024-02-27deps: bump luasocket and luasecHisham Muhammad3-26/+145
2024-02-27deps: bump zlib versionHisham Muhammad1-1/+1
2024-02-27binary: dkjson is no longer a dependency, it is now vendored inHisham Muhammad1-1/+0
2024-02-27fix: more resilient sysconfdir detectionHisham Muhammad1-1/+5
2024-02-27tests: reorganize and speed up unit testsHisham Muhammad46-736/+743
2024-02-27fix(fs): make copy_contents behavior consistent on UnixHisham Muhammad1-1/+4
Make it match the win32 behavior.
2024-02-27fix(fs): make current_dir always return 1 arg onlyHisham Muhammad10-5/+11
2024-02-27tests(fetch): do not use restserverHisham Muhammad4-282/+309
2024-02-27tests(build): split unit and integration filesHisham Muhammad2-352/+369
use restserver only in integration part
2024-02-27perf: speed up untar operationHisham Muhammad1-4/+21
2024-02-26tests: enable coverage on quick testsHisham Muhammad1-2/+3
2024-02-26fix: prevent LuaRocks from blocking lfs from removal on WindowsHisham Muhammad1-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.
2024-02-26tests: replace some more tests with quick testsHisham Muhammad3-84/+287
2024-02-25fix: if --lua-* flags are given, don't use the hardcoded pathsHisham Muhammad2-15/+26
Thanks @Frityet for the help with troubleshooting! Fixes #1611
2024-02-23fix: better normalization for paths and slashesHisham Muhammad23-384/+489
Fixes #1195.
2024-02-23tests: introduce quick testsHisham Muhammad13-68/+706
2024-02-21fix: handle error if test.command is not a string.Hisham Muhammad2-0/+57
Fixes #1055.
2024-02-21fix(init): do not write spurious .gitignore entriesHisham Muhammad1-2/+2
2024-02-20Makefile: make install target phonyHisham Muhammad1-32/+30
Fixes #1038.
2024-02-20ci: don't run luacheck twice on pull requestsHisham Muhammad1-1/+5
2024-02-20ci: run main tests on master branch as wellHisham Muhammad1-1/+1
2024-02-20fix: let runtime detection handle LUALIB filenameHisham Muhammad2-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.
2024-02-20improve and simplify Lua interpreter searchHisham Muhammad6-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)
2024-02-19fix: don't show "no downloader" error for every mirrorHisham Muhammad4-7/+10
2024-02-19fix(init): inject project's package.(c)path in lua wrapper scriptHisham Muhammad1-1/+20
Fixes #924.
2024-02-19fix(init): use absolute paths when deletingHisham Muhammad1-2/+2
Thanks to @imolein for pointing it out!
2024-02-19fix(config): print boolean values correctly on Lua 5.1Hisham Muhammad2-1/+19
2024-02-19fix(lint): don't crash when missing descriptionHisham Muhammad2-2/+16
2024-02-19fix(build): don't look for Lua headers when installing pure-Lua rocksHisham Muhammad6-174/+228
This only applies to 'builtin' as we can't know about other modes, but this should be good enough. Fixes #1275.
2024-02-19improve dependency match messageHisham Muhammad1-1/+1
2024-02-19fix(config): ensure directory exists when saving config fileHisham Muhammad1-3/+10
Fixes #1261.
2024-02-19when picking a default dependency dir, look for lib/ firstHisham Muhammad2-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.
2024-02-19fix(builtin): compile C modules in a temp directoryHisham Muhammad2-6/+34
Fixes #1492.