aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for release 2.4.4v2.4.4Hisham Muhammad2018-03-123-5/+5
|
* 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/
* Fix .def generation on Windows. (#767)dwenegar2018-03-121-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-03-122-5/+4
| | | | | | | | | | * 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).
* Travis: add cacheHisham Muhammad2018-03-122-7/+27
|
* Changes to the output of the test suiteHisham Muhammad2018-03-122-4/+3
|
* Update Windows installer to better handle gcc toolchains (#759)Thijs Schreijer2018-03-121-3/+89
| | | Update the Windows installer to better handle gcc toolchain in different environments
* Differentiate "not found" and "fail" when deleting.Hisham Muhammad2018-03-121-4/+10
| | | | | Do not halt a deletion process when trying to delete something that was not found.
* Fix detection of directories on WindowsSebastian Thomschke2018-03-121-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 )
* read just one line when checking md5Michal Cichra2018-03-121-1/+1
| | | | in some cases reading the whole file fails (on macOS High Sierra, LuaJIT) this is timing dependent and waiting between spawning and reading solves the issue as well
* Prepare for release 2.4.3.v2.4.32.4.3Hisham Muhammad2017-09-124-6/+6
|
* Improve error checking in ownership check.Hisham2017-09-124-7/+23
| | | | See #664.
* Oops! Fix warning message.Hisham2017-09-121-1/+3
|
* Check ownership of cache directory and emit a warning.Hisham2017-09-126-9/+47
| | | | | This prevents `sudo luarocks` to take over ownership of the user's ~/.cache/luarocks directory.
* Add sanity check for lua.hHisham Muhammad2017-09-121-0/+9
|
* Make sure target directory exists when saving API config.Hisham2017-09-121-0/+5
| | | | Closes #676.
* Fix clobbered varible.Hisham2017-09-121-7/+7
|
* Check for specific directories instead of the root dir.Hisham2017-09-121-19/+20
| | | | | Fixes problem in macOS 10.12. See http://lua-users.org/lists/lua-l/2016-12/msg00001.html
* List commands in `luarocks show`Peter Melnichenko2017-09-121-4/+16
|
* Fix module paths `luarocks show` displays for "asset" filesPeter Melnichenko2017-09-122-4/+28
| | | | | | | | Instead of using path.which that produced incorrect results for files with no .lua/.so/.dll extension, reimplement similar functionality in luarocks.repos (with support for commands as well) and use that. Ref #424.
* Formatting fix for recent addition to `make` help messagePeter Melnichenko2017-09-121-1/+2
|
* Merge pull request #728 from mpeterv/test-fixesPeter Melnichenko2017-09-112-9/+8
|\ | | | | Fix spec failure under LuaJIT 2.1.0-beta3 + other test fixes
| * Clarify test_env.need_rock description wrt return valuePeter Melnichenko2017-09-112-2/+4
| |
| * Use dkjson instead of lua-cjson for upload testPeter Melnichenko2017-09-111-4/+1
| | | | | | | | lua-cjson fails to build under LuaJIT 2.1.0-beta3.
| * Pass correct rockspec to upload tests that should fail for other reasonsPeter Melnichenko2017-09-111-2/+2
| | | | | | | | | | | | | | Most tests simply check that some command succeeds or fails. When failure is expected, failure reason is not checked. In this case, upload commands was failing because passed rockspec did not exist and not for reason tests planned.
| * Remove www. from rock repository URL in testsPeter Melnichenko2017-09-111-1/+1
| | | | | | | | www.luarocks.org redirects to luarocks.org.
* | Merge pull request #725 from RussDragon/pp/5639/help_additionPeter Melnichenko2017-09-111-0/+2
|\ \ | |/ |/| Additional help-info added to luarocks help make about --only-deps flag.
| * Additional help-info added to luarocks help make about --only-deps flag.Philipp Pa2017-08-241-0/+2
|/
* Merge pull request #717 from alkino/masterHisham Muhammad2017-07-101-1/+1
|\ | | | | Forget deprecated options from command line help.
| * Forget deprecated options from command line help.Nicolas Cornu2017-07-071-1/+1
| |
* | Merge pull request #716 from robooo/test_suite_fixHisham Muhammad2017-07-101-2/+2
|\ \ | |/ |/| Change setup/teardown in make tests to before/after due to wrong use
| * Change setup/teardown in make tests to before/after due to wrong useroboo2017-07-061-2/+2
|/
* Merge pull request #715 from robooo/test_suite_fixHisham Muhammad2017-07-051-0/+1
|\ | | | | Added LPeg dependency for lxsh to luarocks make tests
| * Added LPeg dependency for lxsh to luarocks make testsroboo2017-07-051-0/+1
|/
* Merge pull request #691 from Izaron/config-failHisham Muhammad2017-04-141-1/+1
|\ | | | | Fixed wrong "interp" in the configure file
| * Fixed wrong "interp" in the configure fileEvgeny Shulgin2017-04-141-1/+1
|/ | | Fixed wrong "interp" instead of "where" in the configure file
* Merge pull request #683 from mpeterv/fix-impl-convPeter Melnichenko2017-03-151-2/+2
|\ | | | | Get rid of an implicit number to string conversion
| * Get rid of an implicit number to string conversionPeter Melnichenko2017-03-141-2/+2
|/ | | | Clearly tostring was implied instead of tonumber.
* Add Travis hook for CodeCovHisham2016-12-051-0/+6
|
* Add Gitter hook for CodeCovHisham2016-12-051-0/+6
|
* Avoid breaking test in release branches.Hisham2016-12-012-3/+3
|
* Merge branch 'master' of https://github.com/keplerproject/luarocksHisham2016-11-290-0/+0
|\
| * Update gitter badge link (keplerproject -> luarocks) [ci skip]Peter Melnichenko2016-11-101-1/+1
| |
* | Update Gitter linkHisham2016-11-101-1/+1
|/
* keplerproject/luarocks -> luarocks/luarocksHisham2016-11-072-4/+4
|
* Merge pull request #644 from mpeterv/fix-conflict-resolveHisham Muhammad2016-11-039-189/+328
|\ | | | | Fix conflict resolution on deploy/remove w.r.t. C/Lua modules with same name
| * Fix and refactor conflict resolution on deploy/deletePeter Melnichenko2016-11-012-183/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor repos.deploy_files and repos.delete_version to make relationships between properties of deployed files clearer and to avoid converting back and forth between related properties. Location of each deployable file in its rock manifest is pair deploy_type - the first subtree name ("bin", "lib", or "lua") and file_path - remaining path from the subtree to the file. These components determine where each file is physically located. Conflicts are considered based on two other properties: type and name of an item a file provides. Type can be "command" or "module". For items deployed using non-versioned names pairs (type, name) should be unique. Conversion from (deploy_type, file_path) to (item_type, item_name) is obvious, using path.path_to_module() for modules. Reversing this conversion is necessary for moving files between versioned and non-versioned locations on conflicts, and also for path.which function used in luarocks.show. However, rock tree manifest only allows to get file_path, which is not enough for modules - deploy_type can be both "lua" and "lib". Currently path.which infers deploy_type based on extension, falling back to "lib" if it's unknown, causing luarocks.show to display wrong paths (#424). This commit does not address that but adds relevant funcionality. Currently conflict resolution assumes that both files in conflict have same deploy_type and errors on conflict between a C module and a Lua module. This commit fixes that, inferring deploy_type for files with unknown extension using rock manifest.
| * Add a test for conflict resolution with mixed deploy typesPeter Melnichenko2016-11-017-6/+123
| |