| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Alternative solution to the problem described in #968. We can't
use #968 because on Unix sometimes people set the value of those
variables so they include arguments (even LuaRocks does it
by default, setting `UNZIP="unzip -n"`).
Now that the variables are quoted, we stop auto-quoting them
in `luarocks.fs`. I expect this change to have to practical
impact on Unix, where paths with spaces are uncommon (those can
use explicit quotes in their values).
|
|
|
|
|
| |
This is especially important now that the Lua library paths
are detected using the dependency check machinery.
|
|
|
|
|
| |
Perform detection of project dir earlier, so we can inspect what
Lua version its config uses.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid reporting itself via the true path of the script; use
the wrapper instead. That is, instead of
```
Error: Argument missing. See '$HOME/.luarocks/lib/luarocks/rocks-5.3/luarocks/dev-1/bin/luarocks help install'.
```
report
```
Error: Argument missing. See '$HOME/.luarocks/bin/luarocks help install'.
```
See https://github.com/luarocks/luarocks/issues/952#issuecomment-449966779
|
|
|
|
|
|
|
|
| |
Containers often run things from the root directory.
This makes the <name> argument mandatory when running
`luarocks init` from `/`.
See https://github.com/luarocks/luarocks/issues/952#issuecomment-456528919
|
|
|
|
| |
See https://github.com/luarocks/luarocks/issues/952#issuecomment-449966779
|
|
|
|
|
| |
When LuaRocks is running on Lua 5.3 and a user uses --lua-version=5.1,
this allows sysconfdir to continue being detected correctly.
|
|
|
|
|
| |
This will still allow things like `luarocks list` and
`luarocks search` to work.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Check if /proc/sys/kernel/ostype reads as "Linux\n" to detect when a
"sysv" platform is really Linux. This test is a fallback with lower
priority than the existing heuristics based on ELF headers.
This fixes a problem with Alpine Linux docker images where LuaRocks
does not detect Linux because /bin/sh ELF headers don't contain have
the expected clues:
$ docker run -ti alpine
/ # apk add --no-cache build-base
[...]
/ # readelf -h /bin/sh
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0xc410
Start of program headers: 64 (bytes into file)
Start of section headers: 803616 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 7
Size of section headers: 64 (bytes)
Number of section headers: 22
Section header string table index: 21
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Hisham Muhammad <hisham@gobolinux.org>
|
|
|
|
| |
Closes #947.
|
| |
|
|
|
|
| |
Closes #901.
|
| |
|
|\ |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows the following to work:
```
git clone https://github.com/example/foo
cd foo
luarocks download --rockspec bar
luarocks test # will still use the foo rockspec
# regardless of the presence of bar rockspec
```
|
| |
|
|
|
|
|
| |
Detect operating system and architecture without forking subprocesses,
doing `file`-like detection reading data from well-known system
executables.
|
|
|
|
|
|
| |
(Amended with a regression test.)
Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
|
|
|
| |
Fixes #931
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Give informative error messages when external tools are not
installed. In particular, give a nicer error on `luarocks pack`
when 'zip' is not installed.
|
|
|
|
|
|
|
|
| |
The Lua version dependency specified with --lua-versions
was using the internal table format. This commit ensures that
it is stored in rockspecs using the string format.
Includes a regression test.
|
| |
|
|
|
|
|
|
| |
The second argument is always the full pathname of the
target script to be created (except for the wrapper suffix
".bat" on Windows).
|
|
|
|
|
|
| |
When luarocks.loader runs from within another process,
we may end up getting an Interrupted signal when reading
from a pipe, which is not handled by Lua.
|
| |
|
|\ |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #908.
|
| |
|
| |
|
|
|
|
| |
This is so a project uses only the auto-inserted project tree
|