aboutsummaryrefslogtreecommitdiff
path: root/lfw (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-01-02Tests: verbose execution on AppveyorHisham Muhammad1-1/+1
2018-01-02Catch error when git fails to read the hashHisham Muhammad1-0/+3
2018-01-02Tests: mark tests with #mock to fix Appveyor failuresHisham Muhammad1-1/+1
2018-01-02Tests: fetching from git stores an identifierHisham Muhammad1-0/+23
2018-01-02Obtain a unique identifier for a rock version fetched via gitHisham Muhammad1-0/+15
2018-01-02When using --tree, prepend its package paths in wrappers.Hisham Muhammad2-1/+3
Fixes #740.
2018-01-02Tests: fix URL of testHisham Muhammad1-1/+1
2017-12-19Tests: fix write_rockspec tests wrt scm -> devHisham Muhammad1-11/+11
2017-12-19Tests: add regression test for #750Hisham Muhammad1-2/+12
Fix #750.
2017-12-19Tests: expose `exist` function to specsHisham Muhammad1-7/+7
2017-12-19Differentiate "not found" and "fail" when deleting.Hisham Muhammad1-4/+10
Do not halt a deletion process when trying to delete something that was not found.
2017-12-19Use util.warning instead of printerr with "Warning: "Hisham Muhammad8-9/+9
2017-12-01Use 'dev' instead of 'scm'.Hisham Muhammad5-7/+11
Match terminology used in luarocks.org. 'scm' is still supported for compatibility reasons, but is no longer the recommended term.
2017-11-09Tests: mark new_version test using mock-serverHisham Muhammad1-18/+21
2017-11-06Tests: build using INCDIR for an external dependencyHisham Muhammad5-4/+58
2017-10-08Travis: configure before makedistHisham Muhammad1-0/+1
2017-10-08Test list of installed files on Travis.Hisham Muhammad2-1/+7
2017-10-08Makefile: remove entry that is still in branch only.Hisham Muhammad1-1/+1
2017-10-08Makefile: Update list of deployed filesHisham Muhammad1-3/+4
Fixes #738.
2017-10-08Adds --dev flag for development-branch sub-repositories. (#736)Hisham Muhammad5-2/+23
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.
2017-10-08Tests: move mock-server utils into test_environment.luaHisham Muhammad4-51/+43
This avoids trouble with changing package.paths during tests.
2017-10-08fun: make function argument the last oneHisham Muhammad1-5/+5
Use an order that works better with the Lua function syntax.
2017-10-08Reorganize luarocks.core requires and type checking tablesHisham Muhammad14-381/+426
* For each `luarocks.core.x` module, make `luarocks.x` module load the core module explicitly as `core`, and expose its relevant methods explicitly as well (instead of using `setmetatable`). * Move all type checking out of the core, adjusting the manifest modules accordingly. * Create separate modules for the rockspec and manifest schemas in the `luarocks.type` namespace.
2017-10-08Tests: use local fixture for new_version test.Hisham Muhammad3-30/+55
2017-10-08Tests: use local fixture for upload test.Hisham Muhammad4-2/+37
Do not hit the github repository for LuaSocket in upload test.
2017-10-08Dir separator is always "/".Hisham Muhammad7-15/+11
The code was already effectively using "/" as the only directory separator, even on Windows. This commit removes the unnecessary indirection.
2017-10-08Move luarocks.index to luarocks.admin.indexHisham Muhammad4-3/+3
2017-10-05ChangeLog: Mark module relocations as internal changesHisham Muhammad1-5/+8
2017-10-05Add `luarocks which` command. (#733)Hisham Muhammad3-3/+35
2017-10-05luarocks.fun: a basic set of functional utilitiesHisham Muhammad4-15/+47
Move `array_contains` away from the `luarocks.util` kitchen sink, and add a `luarocks.fun` module with some basic functional utilities. I considered using luafun instead, but at this point the basic functionality of LuaRocks has no mandatory external dependencies, so I thought I'd just add these functions internally instead.
2017-10-043.0: Patches can create and delete files.Hisham Muhammad4-135/+181
2017-10-04Add test fixture for creating/deleting files in a patch.Hisham Muhammad2-0/+35
2017-10-04Patches now can create a new files from /dev/null (#692)Evgeny Shulgin1-1/+13
2017-10-04Make Makefiles install site_config.lua in new location.Hisham Muhammad2-3/+4
Fixes #735.
2017-10-04Fix: handle missing dependencies section in manifest.Hisham Muhammad1-2/+2
Closes #718.
2017-10-04Use versioned files only. (#734)Hisham Muhammad16-227/+161
Let's take the opportunity of a new major version to make an important cleanup: getting rid of the error-prone unversioned configuration files. This drops support for: * Unversioned config.lua -> use config-5.x.lua * Unversioned luarocks/site_config.lua -> it always generates luarocks/core/site_config_5_x.lua * Unversioned lib/luarocks/rocks -> it always uses lib/luarocks/rocks-5.x
2017-10-04Fix detection of directories on WindowsSebastian Thomschke1-1/+1
Function tools.delete performs a test to determine if a path is a file or a directory to select the appropriate delete command rmdir vs del. The current test however results in rmdir being used on files too, which then results in a build abortion with error "The directory name is invalid.". E.g. if exist "c:\luarocks\share\lua\5.2\luasocket_3_0rc1_2-socket.lua\" ( echo "I am a folder" ) else ( echo "I am a file" ) wrongly prints "I am a folder" (tested on Windows 10) Whereas if exist "c:\luarocks\share\lua\5.2\luasocket_3_0rc1_2-socket.lua\*" ( echo "I am a folder" ) else ( echo "I am a file" ) correctly prints "I am a file" (tested on Windows 10) This fixes #670 (Also see https://stackoverflow.com/a/1466528/1793220 )
2017-10-04Makefile.setup.inc: do not include trailing slash in LUADIRDaniel Hahler1-1/+1
LUADIR is used with a following slash everywhere, and it looks confusing when seeing "//" during the build.
2017-10-03Use __tostring to represent versions as strings.Hisham Muhammad2-20/+9
2017-10-03Safer comparison number.Hisham Muhammad1-2/+2
Ensures the special values for dev versions are higher than versions like 20171002.
2017-09-30Revert commited `make build` changes in src/binPeter Melnichenko2-4/+2
2017-09-29Travis: cache Busted and LuaCov as wellHisham Muhammad1-3/+2
2017-09-29Travis: fix use of cacheHisham Muhammad1-2/+2
2017-09-29Travis: speed up buildHisham Muhammad3-5/+7
2017-09-29Travis: add cacheHisham Muhammad1-0/+13
2017-09-29Refactor download() functionHisham Muhammad1-31/+47
2017-09-29Fix: don't eat up one slash when fixing the pathHisham Muhammad1-1/+1
2017-09-29Nicer title message for `luarocks search`Hisham Muhammad1-1/+2
2017-09-29Revise README.md for test/Hisham Muhammad1-19/+24
2017-09-29Changes to the output of the test suiteHisham Muhammad2-4/+3