aboutsummaryrefslogtreecommitdiff
path: root/win32 (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-19fix(builtin): compile C modules in a temp directoryHisham Muhammad2-6/+34
Fixes #1492.
2024-02-19vendor in the dkjson dependencyHisham Muhammad6-47/+750
Fixes #1243. Fixes #1168. Fixes #559.
2024-02-19silence warning which only appears when rebuilding manifestHisham Muhammad1-1/+0
Fixes #1446.
2024-02-19normalize project dirHisham Muhammad1-1/+1
Avoid showing things like `/foo/bar/../.././lua_modules` when running `luarocks path`.
2024-02-19feat(path): add --full flag for --lr-path and --lr-cpathHisham Muhammad1-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.
2024-02-19fix program search when using absolute paths and .exe extensionsHisham Muhammad2-1/+25
Fixes #1001. Thanks @badrazizi for the suggestion!
2024-02-18fix: do not attempt setting exec permissions for folders on WindowsHisham Muhammad1-3/+5
Not sure of what are the circumstances that make this cause problems on Windows, but running this shouldn't be necessary on Windows, since the concept of "execute permissions for directories means traversal permissions" is a Unixism. Fixes #991.
2024-02-18drop cfg.lua_interpreter, use cfg.variables.LUAHisham Muhammad15-134/+189
2024-02-18ci: bump actions/checkout in luacheck.ymlHisham Muhammad1-1/+1
...to get rid of the GitHub Actions warning about Node.js 16
2024-02-17feat(builtin): inherit inc and libdirs from external_dependenciesHisham Muhammad1-4/+5
If a rockspec has external_dependencies but the module entry does not specify incdirs or libdirs, then autoextract those values from external_dependencies and apply it to the module entry. Hopefully this will improve compatibility of existing rockspecs that did not fully specify their incdirs and libdirs, such as https://github.com/brimworks/lua-yajl/blob/078e48147e89d34b8224a07129675aa9b5820630/rockspecs/lua-yajl-2.0-1.rockspec Fixes #1239.
2024-02-17fix: catch the failure to setup LUA_BINDIR early.Hisham Muhammad1-0/+6
Fixes #1202.
2024-02-17fix(show): print commands correctly in --porcelain modeHisham Muhammad1-2/+1
2024-02-17fix(build): report if zip is unavailable for --pack-binary-rockHisham Muhammad1-2/+3
Fixes #1414.
2024-02-17fix(build): add some validation to the build tableHisham Muhammad1-0/+6
LuaRocks does not validate the contents of the build table because each backend defines it on this own. These validations should be enough to address #1477, but ideally each bundled `build` backend should have its own validator like the one on `luarocks.type.rockspec`. Fixes #1477.
2024-02-17fix: install build_dependencies on the correct Lua versionHisham Muhammad2-6/+37
When installing build dependencies, do so for the Lua version on which the LuaRocks program is actually running, and not the one selected by the user via config or `--lua-version`. To do that, we temporarily flip the user-selected Lua version. It's a hacky approach because we have to do this by flipping a bunch of global config settings, and we may be missing some entries. This definitely needs a better solution, but this is what can be done somewhat easily in the current architecture. A full solution needs to address have several complications (e.g. if you have a build dependency that needs to be compiled, it will require C headers for another version of LuaRocks, and the binary might be compiled with a different Lua version than the one the developer has set up in their machine.)
2024-02-17fix(config): update system config by default with local_by_default = falseRoman Orekhov1-1/+1
Fixes #1512.
2024-02-17feat(init): add --no-gitignore, --no-wrapper-scripts, --wrapper-dirHisham Muhammad2-32/+129
Closes #1513.
2024-02-17fix: handle error when failing to create local_cacheHisham Muhammad1-1/+6
Closes #1514. Co-Authored-By: FractalU <r.beckmann@protonmail.com>
2024-02-17fix: sysdetect: prefer interpreter to avoid multiarch shell on macOSHisham Muhammad1-1/+1
Thanks @RunsFor for the suggested workaround! Fixes #1529.
2024-02-17refactor: reduce some aliasingHisham Muhammad2-11/+13
Reduce some variable aliasing, just in case this is what is triggering possible LuaJIT bugs on the MIPS-based LoongArch architecture. See #1553.
2024-02-17fix: avoid cross-device linksHisham Muhammad1-4/+1
Fixes #1559
2024-02-16fix: `build.install_command` doesn't execute on windowsSewbacca2-6/+16
2024-02-16fix: build_dependencies can use a dependency found anywhereHisham Muhammad1-1/+1
2024-02-15fix: avoid nil crash if config_files is not fully filledHisham Muhammad1-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
2023-12-13Introduce locking for concurrent access control (#1557)Hisham Muhammad12-10/+100
Fixes #1540
2023-12-12improve rockspec.source.dir detection by moving it later (#1555)Hisham Muhammad5-43/+88
2023-12-12fs.tools: do not cd to initial directoryHisham Muhammad1-3/+5
Fixes #1545
2023-12-11fix: Add value specified via --tree to cfg.rocks_trees (#1549)leso-kn1-0/+3
* Fixes a crash in `fulfill_dependency()` on musl
2023-12-11Don't use floats to parse the Lua version (#1552)Michael Savage1-4/+2
2023-10-31feat: auto-add luarocks-build-<build.type> build dependency (#1542)Hisham Muhammad2-0/+156
2023-10-31tests: auto-find interpreter at /usr/bin/lua (#1544)Hisham Muhammad1-16/+33
2023-10-31Strip quotes for tools in paths on Windows (#1498)dundargoc1-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>
2023-10-31luajit: ignore extra version info in jit.version (#1519)wojas1-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".
2023-10-31admin: remove now works with the file protocol (#1536)Pavel Balaev1-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.
2023-10-30Fix problems in path normalisation algorithm (#1541)Aleksei Volkov2-4/+15
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.
2023-07-26update domain name of mirror (luafr.org -> loadk.com) (#1517)Pierre Chapuis1-1/+1
2023-03-02upload.api: using CURLNOCERTFLAG in curl_cmd instead of hardcoded -k (#1490)Sebastian Hübner1-1/+1
2022-12-08CHANGELOG: update for 3.9.2Hisham Muhammad1-0/+20
2022-12-08Windows binary build tweaksv3.9.2Hisham Muhammad3-2/+138
2022-12-08Windows binary: update zlib to 1.2.13Hisham Muhammad1-1/+1
2022-12-08Release 3.9.2Hisham Muhammad5-6/+7
2022-12-08build.builtin: added support for clang on Windows (#1466)Apoorv Sachan1-2/+10
2022-12-07path.path_to_module: accept custom extensions in package.(c)path (#1468)Hisham Muhammad1-13/+18