Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix: avoid nil crash if config_files is not fully filled | Hisham Muhammad | 2024-02-15 | 1 | -1/+6 | |
| | | | | | | | | I couldn't track down which scenarios cause this, but it has happened on Windows: See: https://github.com/lunarmodules/luasystem/pull/17 See: https://github.com/lunarmodules/luasystem/actions/runs/7907096563/job/21583369125?pr=17 | |||||
* | Introduce locking for concurrent access control (#1557) | Hisham Muhammad | 2023-12-13 | 12 | -10/+100 | |
| | | | Fixes #1540 | |||||
* | improve rockspec.source.dir detection by moving it later (#1555) | Hisham Muhammad | 2023-12-12 | 5 | -43/+88 | |
| | ||||||
* | fs.tools: do not cd to initial directory | Hisham Muhammad | 2023-12-12 | 1 | -3/+5 | |
| | | | | Fixes #1545 | |||||
* | fix: Add value specified via --tree to cfg.rocks_trees (#1549) | leso-kn | 2023-12-11 | 1 | -0/+3 | |
| | | | | * Fixes a crash in `fulfill_dependency()` on musl | |||||
* | Don't use floats to parse the Lua version (#1552) | Michael Savage | 2023-12-11 | 1 | -4/+2 | |
| | ||||||
* | feat: auto-add luarocks-build-<build.type> build dependency (#1542) | Hisham Muhammad | 2023-10-31 | 1 | -0/+30 | |
| | ||||||
* | Strip quotes for tools in paths on Windows (#1498) | dundargoc | 2023-10-31 | 1 | -1/+2 | |
| | | | | | | | | | | | | As mentioned by @erw7 in https://github.com/luarocks/luarocks/issues/1443#issuecomment-1483816481, quotes is required when using io.popen but causes problems when using io.iopen. This makes luarocks unable to find its own md5sum.exe it is shipped with. Fixes https://github.com/luarocks/luarocks/issues/1443 Fixes https://github.com/neovim/neovim/issues/22752 Co-authored-by: erw7 <erw7.github@gmail.com> | |||||
* | luajit: ignore extra version info in jit.version (#1519) | wojas | 2023-10-31 | 1 | -1/+2 | |
| | | | | | | | | | | | Ignore any extra version info in jit.version when separated by a space. A normal LuaJIT jit.version string looks like "LuaJIT 2.1.0-beta3". Since official LuaJIT releases have all but stopped, various forks continue to use the same version for all forks. This change allows forks and patched rebuilds to add additional version information at the end of the string without breaking luarocks version detection, e.g. "LuaJIT 2.1.0-beta3 some-extra-version-info". | |||||
* | admin: remove now works with the file protocol (#1536) | Pavel Balaev | 2023-10-31 | 1 | -3/+11 | |
| | | | | | | | `admin add` can add rockspec using the file protocol without any problems: ./bin/luarocks-admin add testapp-scm-1.rockspec --server '/tmp/rocks/orig' But deletion only works using the rsync protocol. This patch adds deletion via file protocol. | |||||
* | Fix problems in path normalisation algorithm (#1541) | Aleksei Volkov | 2023-10-30 | 1 | -4/+7 | |
| | | | | | | | | 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. | |||||
* | update domain name of mirror (luafr.org -> loadk.com) (#1517) | Pierre Chapuis | 2023-07-26 | 1 | -1/+1 | |
| | ||||||
* | upload.api: using CURLNOCERTFLAG in curl_cmd instead of hardcoded -k (#1490) | Sebastian Hübner | 2023-03-02 | 1 | -1/+1 | |
| | ||||||
* | build.builtin: added support for clang on Windows (#1466) | Apoorv Sachan | 2022-12-08 | 1 | -2/+10 | |
| | ||||||
* | path.path_to_module: accept custom extensions in package.(c)path (#1468) | Hisham Muhammad | 2022-12-07 | 1 | -13/+18 | |
| | ||||||
* | fix `test --prepare` with non-busted rocks (#1453) | Pierre Chapuis | 2022-11-28 | 1 | -1/+5 | |
| | | | * fix `test --prepare` with non-busted rocks | |||||
* | cfg: follow standard enviromental variables | Artturin | 2022-08-26 | 1 | -33/+33 | |
| | | | | distributions use these to use the correct compiler and other tools | |||||
* | luarocks test: add nil check | Hisham Muhammad | 2022-08-26 | 1 | -1/+1 | |
| | ||||||
* | luarocks test: check all dependency kinds | Hisham Muhammad | 2022-08-26 | 1 | -4/+11 | |
| | | | | | | When running tests we usually need runtime, build and test dependencies. This avoid having CI setups need to run `luarocks make --only-deps` in order to run `luarocks test`. | |||||
* | persist: create directory for file to be saved | Hisham Muhammad | 2022-08-26 | 1 | -0/+2 | |
| | ||||||
* | mingw: default to x86_64 compiler on 64-bit Windows | Hisham Muhammad | 2022-08-26 | 1 | -3/+8 | |
| | ||||||
* | avoid crash if variables.LUA* are unset | Hisham Muhammad | 2022-08-25 | 1 | -3/+3 | |
| | | | | Fixes #1418 | |||||
* | deps: sanity check on luajitver | Hisham Muhammad | 2022-06-06 | 1 | -1/+1 | |
| | ||||||
* | loader.which: new option for searching package.path and cpath | Hisham Muhammad | 2022-06-06 | 2 | -20/+48 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | test: perform variable substitutions in test.flags | Hisham Muhammad | 2022-06-06 | 4 | -16/+13 | |
| | ||||||
* | fix error message when Lua library is not found | Hisham Muhammad | 2022-05-18 | 1 | -1/+1 | |
| | ||||||
* | Add --no-project flag to override .luarocks project dir | Hisham Muhammad | 2022-05-03 | 1 | -1/+6 | |
| | ||||||
* | deps: be more lenient in library version check | Hisham Muhammad | 2022-04-16 | 1 | -8/+18 | |
| | ||||||
* | deps: verify version mismatch when checking for Lua library | Hisham Muhammad | 2022-04-16 | 1 | -2/+11 | |
| | ||||||
* | deps: better error message when lua.h version mismatches | Hisham Muhammad | 2022-04-16 | 1 | -7/+15 | |
| | ||||||
* | fs.unix: fallback for when $USER variable is unset | Hisham Muhammad | 2022-04-16 | 3 | -9/+19 | |
| | | | | | | 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. | |||||
* | search: avoid mixing up version and repo in pick_installed_rock | Hisham Muhammad | 2022-04-16 | 1 | -7/+3 | |
| | ||||||
* | Configurations for program_series and major_version are unused | Hisham Muhammad | 2022-04-16 | 1 | -4/+0 | |
| | | | | | | They look like useless maintenance burden, and I seriously doubt anyone uses those in their config files. In any case, they're easy to derive from cfg.program_version. | |||||
* | macos: support .tbd extension for later versions of macOS | Hisham Muhammad | 2022-04-12 | 1 | -0/+2 | |
| | ||||||
* | macos: add best-effort library search for Homebrew | Hisham Muhammad | 2022-04-12 | 1 | -0/+8 | |
| | ||||||
* | macos: use XCode SDK path by default | Hisham Muhammad | 2022-04-12 | 1 | -0/+5 | |
| | ||||||
* | fs: try to accept a quoted filename with spaces | Hisham Muhammad | 2022-04-11 | 1 | -1/+1 | |
| | ||||||
* | fs.is_tool_available: if it looks like a pathname, try that first | Hisham Muhammad | 2022-04-11 | 1 | -1/+14 | |
| | | | | | Some uses of is_tool_available use binary names that can be overriden by the user via configuration. | |||||
* | patch: fix check for malformed patches | Hisham Muhammad | 2022-04-11 | 1 | -1/+2 | |
| | ||||||
* | add DragonFly BSD support | Hisham Muhammad | 2022-04-11 | 2 | -18/+13 | |
| | ||||||
* | fixes suggested by luacheck | Hisham Muhammad | 2022-04-11 | 3 | -3/+3 | |
| | ||||||
* | simplify check if tool is available | Hisham Muhammad | 2022-04-11 | 8 | -36/+30 | |
| | ||||||
* | Changes for building the all-in-one binary with Lua 5.4 | Hisham Muhammad | 2022-04-11 | 3 | -3/+5 | |
| | ||||||
* | build: change how the CFLAGS/LDFLAGS environment variables are honored | Hisham Muhammad | 2022-03-06 | 2 | -8/+22 | |
| | | | | This is to ensure that the -fPIC tweak is always added. | |||||
* | macOS: make deployment target 11.0 if running on macOS 11+ | Hisham Muhammad | 2022-03-02 | 1 | -1/+3 | |
| | ||||||
* | fix: avoid quoting issues with LIBFLAG on MacOS | Hisham Muhammad | 2022-02-17 | 1 | -2/+2 | |
| | ||||||
* | builtin: always respect CC, CFLAGS, LDFLAGS | Hisham Muhammad | 2022-02-17 | 2 | -8/+10 | |
| | | | | | | | There were already workarounds in place for some platforms. This should make the behavior consistent. Fixes #429. | |||||
* | fs.tools: remove trailing spaces from current dir, for Windows | Hisham Muhammad | 2022-02-17 | 1 | -1/+1 | |
| | ||||||
* | win32: do not use "pwd" on windows, use "echo %cd%" | Hisham Muhammad | 2022-02-17 | 1 | -1/+2 | |
| | ||||||
* | win32: use Windows's own MKDIR and RMDIR | Hisham Muhammad | 2022-02-17 | 1 | -1/+1 | |
| |