| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes special config keys `lua_dir` and `lua_version`,
which are essentially persistent versions of --lua-dir
and --lua-version:
* `lua_dir` writes a number of LUA_* variables and
cfg.lua_interpreter in the current scope's config file.
* `lua_version` writes default-lua-version.lua to the
given scope.
Also deprecates the "flag" versions for various getters:
* `--lua-incdir`: use `luarocks config variables.LUA_INCDIR`
* `--lua-libdir`: use `luarocks config variables.LUA_LIBDIR`
* `--lua-ver`: use `luarocks config lua_version`
* `--system-config`: use `luarocks config config_files.system.file`
* `--user-config`: use `luarocks config config_files.user.file`
* `--rock-trees`: use `luarocks config rocks_trees`
|
| |
|
|
|
|
|
| |
When running as root, simply switch to use /var/cache/luarocks
as a cache.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Introduce cache_timeout config option (default 10 seconds)
* Do not re-check for the last-modified time of a file to
be downloaded for cfg.cache_timeout seconds
* Do not re-unzip if zip file was fetched from cache
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The --verify options of build and make check the signature of
rockspec and src.rock files; the --sign option is meant to
be used alongside --pack-binary-rock.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Introduce a new module, `luarocks.signing`
* Add `--sign` option to `luarocks pack`, which produces a
detached GPG signature
* Includes a basic test, along with some fixtures with
a password-less GPG key
|
| |
|
|
|
|
|
|
|
|
| |
Implements versions of exists, is_file, is_dir for POSIX and Windows
using io.open only, based on the semantics of their error codes
on these platforms.
Drops the dependency on TEST.EXE on Windows.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This will try to JSON-decode any response, and if it succeds,
will return it regardless of status code. If the body cannot
be JSON-decoded, then the status code and URL are returned as
an error.
Fixes #975.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
```
|