| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Test case for issue reported at https://github.com/Kong/kong/issues/5017
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 #1156.
|
| |
|
| |
|
|
|
|
| |
Fixes #1141
|
|
|
|
| |
Fixes #1147.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds support for pinning dependencies in projects and rocks:
* Adds a new flag called `--pin` which creates a `luarocks.lock`
when building a rock with `luarocks build` or `luarocks make`.
This lock file contains the exact version numbers of every
direct or indirect dependency of the rock (in other words,
it is the transitive closure of the dependencies.)
For `make`, the `luarocks.lock` file is created in the current
directory.
The lock file is also installed as part of the rock in
its metadata directory alongside its rockspec.
When using `--pin`, if a lock file already exists, it is
ignored and overwritten.
* When building a rock with `luarocks make`, if there is a
`luarocks.lock` file in the current directory, the exact
versions specified there will be used for resolving dependencies.
* When building a rock with `luarocks build`, if there is a
`luarocks.lock` file in root of its sources, the exact
versions specified there will be used for resolving dependencies.
* When installing a `.rock` file with `luarocks install`, if the
rock contains a `luarocks.lock` file (i.e., if its dependencies
were pinned with `--pin` when the rock was built), the exact
versions specified there will be used for resolving dependencies.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Support make --no-doc
* Add test for make --no-doc
|
| |
|
|
|
|
| |
See #1070.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `--branch` flag is optional and takes a string argument.
The `--branch` flag does not make sense for `luarocks make` because
it does not fetch sources, it builds/installs based on whatever is
in the current directory.
This also adds tests that verify the behavior, but these don't
run in Travis CI because of issues running a Git daemon there.
They were verified locally.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Implements suggestion by @FSMaxB:
> Add an additional flag to util.cleanup_path that specifies if the cleanup
> happens from the right or from the left. If append is true, clean up from the
> left, otherwise clean up from the right.
Fixes #763.
|
|
|
|
| |
Also, add some tests.
|
|
|
|
| |
Regression test for #1021.
|
|
|
|
| |
Fixes #1005.
|
|
|
|
|
|
|
|
|
|
| |
Make it more robust when detecting the Lua version when working inside a
project, and hopefully make the detection logic easier to track in the
code. Reorganized code so that the `detected` table becomes internal
to the `init_config` operation and only the regular `cfg` global table
is used after that.
Includes regression tests.
|
| |
|
|
|
|
| |
Includes a regression test.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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`
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
|
|
|
| |
Closes #947.
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|