aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mock-server: make initialization independent of cwdHisham Muhammad2018-04-112-1/+4
|
* show: make --deps aware of namespacesHisham Muhammad2018-04-112-17/+29
|
* 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
|
* Tests: make verbose mode even more verboseHisham Muhammad2018-04-111-1/+1
| | | | | When running busted with `-Xhelper verbose`, now it will display the full output of every command.
* Read namespace on disk search as wellHisham Muhammad2018-04-111-12/+20
|
* Add support for namespaces.Hisham Muhammad2018-04-1148-426/+856
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix the way we compare environmentsHisham Muhammad2018-04-111-1/+1
| | | | | | This is not even using a md5sum hash anymore. Seems to work fine on Linux, will probably end up doing the same on other platforms.
* Tests: add test for namespaced installHisham Muhammad2018-04-1123-25/+290
|
* Beginning support for namespaced queriesHisham Muhammad2018-04-1111-76/+132
|
* add --porcelain to search helpAlec Larson2018-04-101-6/+7
|
* Tests: add missing fixturesHisham Muhammad2018-04-024-0/+24
|
* Tests: bump version of abelhas in testsHisham Muhammad2018-03-302-18/+22
| | | | TODO: this should be changed to depend on local files only.
* Tests: run our own local git-daemon repository for git testsHisham Muhammad2018-03-305-56/+219
|
* Tests: make sure tests run from testrun/Hisham Muhammad2018-03-307-28/+43
|
* Tests: fix luarocks list testHisham Muhammad2018-03-301-1/+1
|
* write_rockspec: cleanup source.identifierHisham Muhammad2018-03-301-0/+1
|
* Tests: isolate test environment from existing Lua variablesHisham Muhammad2018-03-291-1/+16
|
* Nicer title message for `luarocks list`Hisham Muhammad2018-03-231-1/+1
|
* upload: new flag --temp-keyHisham Muhammad2018-03-204-1/+7
| | | | | | 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 latest stable LuaRocks on AppveyorPeter Melnichenko2018-03-151-1/+1
|
* Use posix.mkdtemp conditionallyHisham Muhammad2018-03-131-1/+5
| | | | Closes #677.
* win32: update 7zip to version 18.01Hisham Muhammad2018-03-122-0/+0
|
* win32: Update Lua to 5.1.5Hisham Muhammad2018-03-1212-6/+20
|
* win32: bump wget binary to 1.19.4Hisham Muhammad2018-03-121-0/+0
| | | | | Binary obtained from https://eternallybored.org/misc/wget/
* Tests: add unit test for fs.is_fileHisham Muhammad2018-02-222-0/+38
|
* Add .editorconfig fileHisham Muhammad2018-02-191-0/+12
|
* 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.
* Fix CI build and coverage gatheringPeter Melnichenko2018-02-102-9/+8
| | | | | | | | | | * Default Mac image has been changed on Travis. Use `pip2` instead of `pip`. * Don't install bit32 on Appveyor or luacov-coveralls on Travis. luacov-coveralls isn't used anymore. * Pass luacov.report.out to codecov explicitly on Appveyor, it doesn't find it there. Also disable gcov run. * Use cluacov, should hopefully improve speed and coverage accuracy. * Use the new location for coverage files (testrun instead of test).
* Update Windows installer to better handle gcc toolchains (#759)Thijs Schreijer2018-01-111-3/+89
| | | Update the Windows installer to better handle gcc toolchain in different environments
* Tests: modify platform detectionHisham Muhammad2018-01-111-8/+11
|
* Reorganize test suite filesHisham Muhammad2018-01-0855-121/+129
|
* path: use versioned LUA_xPATH_5_x variablesHisham Muhammad2018-01-056-9/+62
| | | | | | | | `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.
* Tests: add dependencies to mock-server testsHisham Muhammad2018-01-041-2/+2
|
* 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
|
* Tests: verbose execution on AppveyorHisham Muhammad2018-01-021-1/+1
|
* Catch error when git fails to read the hashHisham Muhammad2018-01-021-0/+3
|
* Tests: mark tests with #mock to fix Appveyor failuresHisham Muhammad2018-01-021-1/+1
|
* Tests: fetching from git stores an identifierHisham Muhammad2018-01-021-0/+23
|
* 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-022-1/+3
| | | | Fixes #740.
* Tests: fix URL of testHisham Muhammad2018-01-021-1/+1
|
* Tests: fix write_rockspec tests wrt scm -> devHisham Muhammad2017-12-191-11/+11
|
* Tests: add regression test for #750Hisham Muhammad2017-12-191-2/+12
| | | | Fix #750.
* Tests: expose `exist` function to specsHisham Muhammad2017-12-191-7/+7
|
* 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.