aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Move luarocks.index to luarocks.admin.indexHisham Muhammad2017-10-084-3/+3
|
* Add `luarocks which` command. (#733)Hisham Muhammad2017-10-053-3/+35
|
* luarocks.fun: a basic set of functional utilitiesHisham Muhammad2017-10-054-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.
* 3.0: Patches can create and delete files.Hisham Muhammad2017-10-043-135/+179
|
* Patches now can create a new files from /dev/null (#692)Evgeny Shulgin2017-10-041-1/+13
|
* Fix: handle missing dependencies section in manifest.Hisham Muhammad2017-10-041-2/+2
| | | | Closes #718.
* Use versioned files only. (#734)Hisham Muhammad2017-10-041-8/+3
| | | | | | | | 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
* Fix detection of directories on WindowsSebastian Thomschke2017-10-041-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 )
* Use __tostring to represent versions as strings.Hisham Muhammad2017-10-032-20/+9
|
* Safer comparison number.Hisham Muhammad2017-10-031-2/+2
| | | | | Ensures the special values for dev versions are higher than versions like 20171002.
* Revert commited `make build` changes in src/binPeter Melnichenko2017-09-302-4/+2
|
* Travis: speed up buildHisham Muhammad2017-09-292-2/+4
|
* Refactor download() functionHisham Muhammad2017-09-291-31/+47
|
* Fix: don't eat up one slash when fixing the pathHisham Muhammad2017-09-291-1/+1
|
* Nicer title message for `luarocks search`Hisham Muhammad2017-09-291-1/+2
|
* Document cache option.Hisham Muhammad2017-09-292-0/+4
|
* Be stricter when autodetecting `source.dir`Hisham Muhammad2017-09-291-7/+6
| | | | | Only assume directory is the location when the tarball contains only a single directory at the top level.
* Remove debugging codeHisham Muhammad2017-09-291-1/+0
|
* Make sure package paths only reference current Lua versionHisham Muhammad2017-09-294-12/+18
|
* read just one line when checking md5Michal Cichra2017-09-261-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
* Speed up type checkingHisham Muhammad2017-09-132-4/+9
|
* Fix version cacheHisham Muhammad2017-09-131-9/+9
|
* Merge branch 'luarocks-3'Hisham Muhammad2017-09-1367-2267/+2403
|\
| * Add sanity check for lua.hHisham Muhammad2017-04-171-0/+9
| |
| * Get rid of an implicit number to string conversionPeter Melnichenko2017-04-141-2/+2
| | | | | | | | Clearly tostring was implied instead of tonumber.
| * Make sure target directory exists when saving API config.Hisham2017-02-081-0/+5
| | | | | | | | Closes #676.
| * Improve error checking in ownership check.Hisham2017-01-084-7/+23
| | | | | | | | See #664.
| * Oops! Fix warning message.Hisham2017-01-061-1/+3
| |
| * Check ownership of cache directory and emit a warning.Hisham2017-01-066-9/+47
| | | | | | | | | | This prevents `sudo luarocks` to take over ownership of the user's ~/.cache/luarocks directory.
| * Remove outdated flagsHisham2016-12-181-1/+1
| |
| * Fix clobbered varible.Hisham2016-12-021-7/+7
| |
| * Check for specific directories instead of the root dir.Hisham2016-12-021-19/+20
| | | | | | | | | | Fixes problem in macOS 10.12. See http://lua-users.org/lists/lua-l/2016-12/msg00001.html
| * Avoid overwriting variable.Hisham2016-12-021-3/+3
| |
| * Avoid breaking test in release branches.Hisham2016-12-011-1/+1
| |
| * Fix duplicated error message on missing rock manifestPeter Melnichenko2016-11-141-4/+2
| | | | | | | | | | | | Fix incorrect merge on top of @66a4d40 resulting in duplicated "rock_manifest file not found" error message when updating manifest.
| * Move get_versions from luarocks.core.manif to luarocks.manif.Hisham2016-11-146-77/+76
| | | | | | | | | | All functions that were in core only for get_versions are moved out as well. Made possible by PR #654.
| * Minor luacheck cleanupsHisham2016-11-141-3/+3
| |
| * Do not require core modules from outside corePeter Melnichenko2016-11-131-1/+1
| |
| * Split pure version/deps operations into luarocks.vers modulePeter Melnichenko2016-11-1316-193/+197
| | | | | | | | | | | | | | luarocks.deps module used to contain version and dependency parsing functions as well as some high-level dependency handling: matching and resolving them. A lot of modules only need the parsing half. Split it into its own module, luarocks.vers.
| * List commands in `luarocks show`Peter Melnichenko2016-11-121-4/+16
| |
| * Fix module paths `luarocks show` displays for "asset" filesPeter Melnichenko2016-11-123-25/+28
| | | | | | | | | | | | | | | | Remove 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 instead. Ref #424.
| * luarocks.repos: refactor repos.package_{modules,commands}Peter Melnichenko2016-11-051-25/+29
| |
| * luarocks.repos: refactor recurse_rock_manifest_treePeter Melnichenko2016-11-051-18/+16
| |
| * Merge branch 'master' into luarocks-3Peter Melnichenko2016-11-043-185/+207
| |\
| * | Use optional lpeg feature when available.Hisham2016-11-011-0/+1
| | |
| * | Remove dead codeHisham2016-11-011-3/+0
| | |
| * | Fix merge of rocks_provided [2].Hisham2016-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now a parameter, because depending on the rockspec version the set of default rocks_provided for a rockspec may change. This is to maintain compatibility with rocks provided by LuaRocks versions in rockspec format 1.0. When checking dependencies for a rockspec, we ensure we respect that to keep backward compatibility. When we check dependencies for the manifest as a whole, we can use the larger set of rocks_provided known by the current LuaRocks version.
| * | Fix merge of rocks_provided.Hisham2016-10-311-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now a parameter, because depending on the rockspec version the set of default rocks_provided for a rockspec may change. This is to maintain compatibility with rocks provided by LuaRocks versions in rockspec format 1.0. When checking dependencies for a rockspec, we ensure we respect that to keep backward compatibility. When we check dependencies for the manifest as a whole, we can use the larger set of rocks_provided known by the current LuaRocks version.
| * | Merge branch 'new-cmd-dir' into luarocks-3Hisham2016-10-3032-345/+387
| |\ \
| | * \ Merge branch 'new-cmd-dir'Hisham2016-10-3066-2057/+2180
| | |\ \