aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace fs.chmod with fs.set_permissionsGeorge Roman2018-05-1715-43/+161
|
* luarocks-admin: only create index.html if it already exists or --index is givenHisham Muhammad2018-05-075-13/+27
|
* luarocks-admin: make `add` work with file:// serversHisham Muhammad2018-05-072-8/+9
|
* test.busted: add explicit fallback for finding Busted on WindowsHisham Muhammad2018-05-071-1/+5
|
* test: auto-install busted if not foundHisham Muhammad2018-05-071-2/+26
|
* deps: add fulfill_dependency for resolving a single dependencyHisham Muhammad2018-05-072-43/+64
|
* test: add --test-type flag for not auto-detected test typesHisham Muhammad2018-05-073-6/+16
|
* rockspec format: add `test_dependencies`Hisham Muhammad2018-05-074-2/+34
|
* path: change signature of root_dir(), make things more consistentHisham Muhammad2018-05-074-26/+16
|
* test: initial implementation of `luarocks.test`Hisham Muhammad2018-05-076-0/+191
| | | | | | | | | | | 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
* rockspec format: add `test`Hisham Muhammad2018-05-071-0/+8
| | | | Adds a top-level table `test` to the format
* Make copy_contents have the same behaviour on Windows and on UnixGeorge Roman2018-04-242-8/+18
|
* Some luacheck cleanupsHisham Muhammad2018-04-235-13/+13
|
* admin.cache: minor refactorHisham Muhammad2018-04-231-13/+19
|
* Fix interpretation of `--` in parse_flagsHisham Muhammad2018-04-231-6/+5
| | | | | Ensure that any further `--` after the first one is passed verbatim to the arguments array.
* Update URL for reporting bugsHisham Muhammad2018-04-231-1/+1
|
* queries: use metatable for default arch and substring fieldsHisham Muhammad2018-04-231-10/+12
| | | | | | | 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.
* luarocks list: fix regression in display of version numbersHisham Muhammad2018-04-191-0/+3
|
* rockspec: add missing references to build_dependenciesHisham Muhammad2018-04-191-1/+2
|
* Add config file format link in `luarocks help config`Hisham Muhammad2018-04-162-0/+7
| | | | Closes #280.
* check types in report_missing_dependenciesHisham Muhammad2018-04-131-0/+6
|
* Use a single load_manifest function throughout the programHisham Muhammad2018-04-135-19/+35
|
* Display namespaces in `luarocks show`Hisham Muhammad2018-04-134-34/+49
|
* fixup: always check external dependencies, even with --nodepsHisham Muhammad2018-04-131-6/+7
|
* Support build_dependencies in the show commandHisham Muhammad2018-04-132-9/+22
|
* Add support for build-only dependenciesHisham Muhammad2018-04-136-31/+49
| | | | | | | | 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`.
* show: make --deps aware of namespacesHisham Muhammad2018-04-111-1/+4
|
* queries: fix tostring()Hisham Muhammad2018-04-111-1/+1
|
* Try to isolate uses of namespaced name stringsHisham Muhammad2018-04-1113-71/+71
| | | | | | | | | | | | | 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.
* Make pack_installed_rock operate on query objectsHisham Muhammad2018-04-112-8/+7
|
* Read namespace on disk search as wellHisham Muhammad2018-04-111-12/+20
|
* Add support for namespaces.Hisham Muhammad2018-04-1132-387/+612
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Beginning support for namespaced queriesHisham Muhammad2018-04-1111-76/+132
|
* add --porcelain to search helpAlec Larson2018-04-101-6/+7
|
* write_rockspec: cleanup source.identifierHisham Muhammad2018-03-301-0/+1
|
* Nicer title message for `luarocks list`Hisham Muhammad2018-03-231-1/+1
|
* upload: new flag --temp-keyHisham Muhammad2018-03-203-1/+4
| | | | | | 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.
* Use posix.mkdtemp conditionallyHisham Muhammad2018-03-131-1/+5
| | | | Closes #677.
* Fix .def generation on Windows. (#767)dwenegar2018-02-141-1/+3
| | | | | 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.
* path: use versioned LUA_xPATH_5_x variablesHisham Muhammad2018-01-054-9/+25
| | | | | | | | `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.
* git.lua: avoid quoting difficulties on WindowsHisham Muhammad2018-01-021-2/+2
|
* Make sure command runs from current dir on WindowsHisham Muhammad2018-01-021-1/+6
|
* Catch error when git fails to read the hashHisham Muhammad2018-01-021-0/+3
|
* Obtain a unique identifier for a rock version fetched via gitHisham Muhammad2018-01-021-0/+15
|
* When using --tree, prepend its package paths in wrappers.Hisham Muhammad2018-01-021-1/+1
| | | | Fixes #740.
* Differentiate "not found" and "fail" when deleting.Hisham Muhammad2017-12-191-4/+10
| | | | | Do not halt a deletion process when trying to delete something that was not found.
* Use util.warning instead of printerr with "Warning: "Hisham Muhammad2017-12-198-9/+9
|
* Use 'dev' instead of 'scm'.Hisham Muhammad2017-12-015-7/+11
| | | | | | Match terminology used in luarocks.org. 'scm' is still supported for compatibility reasons, but is no longer the recommended term.
* Adds --dev flag for development-branch sub-repositories. (#736)Hisham Muhammad2017-10-084-2/+19
| | | | | | | | | | | 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.
* fun: make function argument the last oneHisham Muhammad2017-10-081-5/+5
| | | | | Use an order that works better with the Lua function syntax.