| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Adds:
* `luarocks test` command
* `luarocks.test` module
* TODO: support running test from `build` as well
* `luarocks.test.busted` test backend
* TODO: add test-only dependency on Busted
* `luarocks.test.command` test backend
|
|
|
|
| |
Adds a top-level table `test` to the format
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Ensure that any further `--` after the first one is passed verbatim to the
arguments array.
|
| |
|
|
|
|
|
|
|
| |
Store default values for the `arch` and `substring` fields of
query objects in the metatable, to avoid storing them in the
actual object for dependency listings, that are persisted in
the manifest.
|
| |
|
| |
|
|
|
|
| |
Closes #280.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Adds the `build_dependencies` key to the rockspec format,
for dependencies that are only triggered when building from
source (e.g. via `luarocks build` or running `luarocks install`
on a rockspec) and not when building from a packaged `.rock`
file using `luarocks install`.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add asserts to uses of `name` arguments to check that they
are not namespaced; rename namespace-able name arguments
to `ns_name` and avoid some unrelated uses of the `name`
argument that don't represent rock names (there are still
others around, to be fixed eventually).
This may cause some failures in some untested code paths
with namespaced packages, but we hope to catch them
with better testing. Better to be safe here than to
perform filesystem operations on incorrect paths.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For details of the new feature, see
https://github.com/luarocks/luarocks/wiki/Namespaces
This ended up being a huge commit because of some major refactoring
motivated by the new feature:
* new modules for some object types:
* `luarocks.queries` - all functions that look for rocks in local or
remote repositories now use objects constructed by this module:
query objects contain the name, namespace and query constraints.
Dependencies in a rockspec are also stored as query objects.
* `luarocks.results` - all individual results produces from queries
are returned in this format: result objects contain the name,
namespace, version, arch and repo.
* the `results` object was renamed to `result_tree`, to better
reflect that it is not an array of `result` objects.
* `luarocks.vers` was removed, its functionality was moved to better locations.
Specifically on namespaces:
* Commands that take a rock `name` can now take `namespace/name`
(and alternately `--flags=namespace` so that URLs can be
also installed with a nominal namespace).
* Rocks installed from a namespace now create a `rock_namespace`
file alongside `rock_manifest`, which is used when matching
namespaced dependencies against locally-installed rocks.
* Using namespaced dependencies in a rockspec, requires
`rockspec_format = "3.0"`.
* Tests under the `#namespaces` hashtag, all using a local repository.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
New flag `--temp-key` for `luarocks upload`, allowing you to easily
upload rocks into an alternate account without disrupting the
stored configuration of your main account.
|
|
|
|
| |
Closes #677.
|
|
|
|
|
| |
According to the Lua's manual:
> Once it finds a C library, this searcher first uses a dynamic link facility to link the application with the library. Then it tries to find a C function inside the library to be used as the loader. The name of this C function is the string "luaopen_" concatenated with a copy of the module name where each dot is replaced by an underscore. Moreover, if the module name has a hyphen, its prefix up to (and including) the first hyphen is removed. For instance, if the module name is a.v1-b.c, the function name will be luaopen_b_c.
|
|
|
|
|
|
|
|
| |
`luarocks path` now exports versioned variables `LUA_PATH_5_x` and
`LUA_CPATH_5_x` instead of `LUA_PATH` and `LUA_CPATH`
when those are in use in your system.
Fixes #760.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #740.
|
|
|
|
|
| |
Do not halt a deletion process when trying to delete something
that was not found.
|
| |
|
|
|
|
|
|
| |
Match terminology used in luarocks.org.
'scm' is still supported for compatibility reasons,
but is no longer the recommended term.
|
|
|
|
|
|
|
|
|
|
|
| |
This adds support for easily requesting `dev` modules from
LuaRocks.org, as in:
```
luarocks install --dev luafilesystem
```
The list of URLs configured in `rocks_servers` is prepended
with a list containing "/dev" in their paths.
|
|
|
|
|
| |
Use an order that works better with the Lua function
syntax.
|