| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes #980.
|
|
|
|
|
|
|
| |
platform autodetection at runtime is apparently failing on Wine,
but we don't really need it when using `luarocks.exe`.
Fixes #996.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prevent fs.move from failing with
```
File already exists: /usr/local/share/lua/5.1/luasec_0_6_2-ssl.lua
```
when overwriting a stale file. This should have already been handled,
but in case the manifest is out of sync for some reason this should
make the behavior more smooth.
|
|
|
|
| |
This should fix the Windows build.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Check that Lua settings are usable and regenarate ./lua wrapper when safe.
Should render --reset less necessary.
|
|
|
|
| |
Makes failure to search for manifest-5.4 cache for a full day.
|
| |
|
|
|
|
| |
refactor into a separate function
|
|
|
|
| |
Do not confuse the project ./lua wrapper with a valid interpreter.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|