| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Older versions of LuaRocks (< 3) registered "foo.init" files as "foo"
(which caused problems, so that behavior was changed). But look for that
in the manifest anyway for backward compatibility.
See https://github.com/luarocks/luarocks/commit/65c417e0ecda55f44c691df032163a8c08f0b52a
See #1276.
|
|
|
|
|
|
|
| |
Ensure that `luarocks` fails if an installation does not successfully
deploy all files registered in the `rock_manifest`.
See #1276.
|
|
|
|
|
|
|
| |
If rock_manifest could not be found, the entry in manifest is unusable:
without the list of files from rock_manifest, we can't scan the repository
to remove files. This means the entry in the repo manifest is a leftover from
an incomplete removal. Remove the entry from the repo manifest.
|
| |
|
|
|
|
|
|
|
| |
* Add fs abstraction file for NetBSD
* Add init function with verification that the unzip binary is
available
Co-authored-by: Lawrence Hoffman <lawrence.hoffman@block-g.com>
|
| |
|
| |
|
|
|
|
|
| |
Old versions of LuaRocks might get confused with modules called "x.init".
This makes the manifest writer more resilient to that.
|
|
|
|
| |
closes #1280
|
|
|
|
|
|
|
|
| |
Tried to do this as non-intrusively as possible, mostly by ignoring the
issues in-line.
Set the option unused_secondaries to false as suggested by @hishamhm.
This makes named but ununsed return values, that serves a documenting
purpose, allowed.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #1238.
|
|
|
| |
Reference: https://svnweb.freebsd.org/ports/head/devel/lua-luarocks/files/patch-src_luarocks_core_cfg.lua?revision=477367&view=markup (based on)
|
|
|
|
|
|
|
| |
Previously, if LUA_INCDIR was specified but invalid, install and other
commands would error without a message, eventually causing a failed
assertion in cmd.lua and leaving a hard-to-troubleshoot situation
with no information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, LuaRocks supports:
* (a) Lua interpreters built for MSYS2 (Lua interpreters depend on
msys-2.0.dll).
(the "msys" platform)
* (b) Lua interpreters built by MinGW (Lua interpreters don't depend
on msys-2.0.dll).
(the "mingw" platform)
This change adds support for (c) Lua interpreters built as native
Windows application by MSYS2 + Mingw-w64 (Lua interpreters don't
depend on msys-2.0.dll). (the "msys2_mingw_w64" platform)
Here are differences between (a), (b) and (c):
* (a) can't work without MSYS2 (msys-2.0.dll)
* (b) can work without MSYS2
* (c) can work without MSYS2 but is generally used with MSYS2
because MSYS2 provides packages of useful libraries such as libxml2.
This change assumes that users use (c) with MSYS2. But this change
still uses win32/tools provided by LuaRocks not MSYS2.
MSYS2 has LuaRocks package:
https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-lua-luarocks
It applies a patch to support (c). If this change is merged into
LuaRocks, MSYS2 doesn't need to have a patch for LuaRocks.
|
|
|
|
|
| |
* fs: fix verbose mode when an argument is nil
* Use table.pack in more places
|
|
|
|
|
|
|
|
| |
Closes #1224.
See https://github.com/luarocks/luarocks/pull/1224/files#r493011698
Co-authored-by: dwenegar <simone.livieri@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* feat: add --no-install to make
Add the --no-install option to the make command to build the rock w/o installing it.
|
|
|
|
|
|
|
| |
We can't autodetect this either because the interpreter running LuaRocks may
not be the same one running Lua.
Fixes #1204.
|
| |
|
| |
|
|
|
|
| |
the name "moonrocks" is legacy
|
|
|
| |
If you're using busybox, luarocks fails despite unzip being installed. Using the --help flag works in GNU, Busybox, and OSX
|
| |
|
|
|
|
| |
Fixes #1200
|
| |
|
| |
|
|
|
|
|
|
| |
If no system-wide permissions, try storing the config locally by default.
Also, if setting both lua_dir and --lua-version explicitly,
switch the default Lua version.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This patch is required to support for Terra, a language embedded in Lua/LuaJIT with support for JITing high-performance code.
The only change here is that Terra uses a strict mode by default, so the attempt to access an undefined global has be wrapped in pcall to make it safe.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes #1174.
|
|
|
|
|
|
|
|
|
|
| |
The idea is to try each mirror in order, but when one fails
with a network error we mark it so we don't keep trying on
each dependency. The logic was wrong in that it marked the
entire entry (consisting of multiple mirrors) instead of
marking mirrors individually.
Closes #1179.
|
| |
|
|
|
|
| |
Closes #1156.
|
| |
|
| |
|