summaryrefslogtreecommitdiff
path: root/src/luarocks/deps.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Core modules reorganization.Hisham2016-06-301-199/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Isolate all modules used by luarocks.loader in a luarocks.core.* namespace. Core modules can only require other core modules, and they only use require() at the top-level chunk. In other words, after luarocks.loader is setup, package.path can be altered at will and it should not affect the ability of luarocks.loader to run, and the luarocks.loader modules should not interfere with modules loaded later. This was motivated by @robooo's GSoC work on porting the LuaRocks test suite to Lua using Busted. Busted itself runs using luarocks.loader, and we need to ensure that the modules loaded by the tests do not conflict with the ones used by luarocks.loader. A circular dependency between luarocks.manif and luarocks.search was removed by creating a separate luarocks.manif.writer module. Also, luarocks-admin commands were moved to a luarocks.admin.* namespace.
| * Remove now unused function deps.deps_mode_to_flagPeter Melnichenko2016-06-131-4/+0
| |
| * Merge branch 'master' into luarocks-3Peter Melnichenko2016-06-131-1/+1
| |\
| * \ Merge branch 'master' into luarocks-3Peter Melnichenko2016-06-131-69/+60
| |\ \
| * \ \ Merge branch 'master' into luarocks-3Hisham2016-05-031-1/+1
| |\ \ \
| * \ \ \ Merge branch 'master' into luarocks-3mpeterv2016-04-161-9/+13
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/luarocks/deps.lua
| * | | | | avoid "missing dependency" errors for defaultsPierre Chapuis2016-01-021-1/+4
| | | | | |
| * | | | | Merge branch 'master' into luarocks-3Hisham Muhammad2015-12-051-19/+34
| |\ \ \ \ \
| * | | | | | Support "luajit" as a provided dependency in rockspec format 3.0Hisham Muhammad2015-10-191-9/+13
| | | | | | |
| * | | | | | Check that rockspec format is at least 3.0 before fetching submodulesmpeterv2015-06-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For utility, add deps.format_is_at_least(rockspec, version) function.
* | | | | | | Get rid of repeated missing deps checksPeter Melnichenko2016-10-301-34/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not report missing dependencies on manifest update, which is now done more often. Instead do it at the end of commands that may alter manifest (install, build, make, remove - excluding purge). For reporting reuse format used when showing missing deps to be installed. Do not report missing indirect dependencies, only direct ones.
* | | | | | | Remove some unused locals and importsPeter Melnichenko2016-10-201-1/+0
| |_|_|_|_|/ |/| | | | |
* | | | | | Use install.command instead of install.run in luarocks.depsPeter Melnichenko2016-06-131-1/+1
| |_|_|_|/ |/| | | |
* | | | | Remove commented module() callsPeter Melnichenko2016-05-311-1/+0
| | | | |
* | | | | Refactor match_dep()Peter Melnichenko2016-05-161-31/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Instead of applying blacklist and sorting versions in separate steps do a single pass over the list. * On success return just the version instead of {name = name, version = version} since rock name is stored inside dependency table already.
* | | | | Return missing deps listing in `luarocks install` outputPeter Melnichenko2016-05-141-4/+21
| | | | |
* | | | | Announce each missing dep before its installPeter Melnichenko2016-05-101-41/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of lising all missing deps before installing all of them, announce each missing dep right before installing it. Also show current rock versions for missing deps.
* | | | | Shorten logging for `luarocks install`Peter Melnichenko2016-05-101-0/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of mentioning URL twice in Installing URL... Using URL... switching to 'build' mode simply print Installing URL and don't print URL at all when it's the argument to `luarocks install` (it's a bit redundant), only when it's a result of a search.
* | | | Show search error in functions using find_suitable_rockmpeterv2016-04-191-1/+1
| |_|/ |/| |
* | | Don't handle multiple rock queries in find_suitable_rockmpeterv2016-03-201-4/+4
| | | | | | | | | | | | | | | | | | In practice search.find_suitable_rock is always called with a precise query (no fuzzy name matching), and not all callers handle table as return value correctly.
* | | Make sure deps-mode is respected when recursing the dependency chain.Hisham2016-03-011-1/+1
| | |
* | | Fix trailing space in dep.show_dep on dep without constraintsmpeterv2016-02-131-5/+9
| |/ |/|
* | Process external deps in sorted ordermpeterv2015-12-051-2/+2
| | | | | | | | | | Ensure consistent output for Lua 5.3 where key order of pairs() can change between two runs.
* | Show candidate files when external deps are missingmpeterv2015-12-051-18/+33
|/
* Isolate the convenience hack, for readability.Hisham Muhammad2014-11-101-0/+2
|
* Unmoduled core modules with package.loaded trick + fixed locals shadowing ↵mpeterv2014-03-201-37/+41
| | | | | | module table Thanks to Metalua for the possibility to automate this.
* Removed some unused variablesmpeterv2014-03-131-1/+0
|
* Have separate fs.dir and fs.list_dir functions.Hisham Muhammad2014-02-081-1/+1
| | | | The first returns an iterator, the second one a table.
* Performance improvementsHisham Muhammad2014-01-091-1/+1
|
* Fix regressions caused by #194. Thank you, integrated testing!Hisham Muhammad2013-12-201-10/+10
|
* Merge pull request #194 from rtsisyk/gh-177-option-for-builtin-packagesHisham Muhammad2013-12-201-12/+6
|\ | | | | Add a configuration option to specify manually installed rocks (#177)
| * Add a configuration option to specify manually installed rocks.Roman Tsisyk2013-11-301-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch adds a new configuration option - cfg.rocks_provided. This option contains a list of packages that are either builtin or manually installed outside of LuaRocks package management system: rocks_provided = { [module_name] = module_version.."-"..rockspec_version, -- ... } These settings are taken into account during dependency resolution and when search and install commands are used. An attempt to install a rock from the list causes an error. LuaRocks automatically adds following modules to the list: rocks_provided = { lua = lua_version.."-1", -- For Lua 5.2 or later: bit32 = lua_version.."-1", -- For LuaJIT: luajit = lj_version.."-1", jit = lj_version.."-1", ffi = lj_version.."-1", bit = lj_version.."-1", luabitop = lj_version.."-1" } where lua_version extracted from _VERSION (e.g. 5.2), lj_version extracted from jit.version (e.g. 2.0.2). Built-in values can be overridden by configuration options. Closes #177.
* | Prioritize "scm" over "cvs". This was underspecified before.Hisham Muhammad2013-12-181-1/+1
|/
* Don't loop in case of circular dependenciesHisham Muhammad2013-10-291-0/+1
|
* support for tables in (runtime_)external_deps_subdirs.*Philipp Janda2013-09-261-9/+27
|
* Whitelist bit32 as a pre-satisfied dependency when running Lua 5.2.Hisham Muhammad2013-09-201-13/+22
|
* accept numbers as first character of a rock name in a dependencyHisham Muhammad2013-08-291-1/+1
|
* Merge branch 'master' into remove_on_installHisham Muhammad2013-07-041-8/+13
|\
| * fixed bad varnameThijs Schreijer2013-07-041-1/+1
| |
| * fixed return valueThijs Schreijer2013-07-041-1/+1
| |
| * Added some additional error info when parsing version constraints, see issue ↵Thijs Schreijer2013-06-171-7/+12
| | | | | | | | https://github.com/Olivine-Labs/busted/issues/169
* | Remove other previously installed versions when running 'build' or 'install'.Hisham Muhammad2013-07-041-9/+12
|/
* Clean up and make use of deps-mode / deps_mode consistent. --nodeps is now ↵Hisham Muhammad2012-10-311-24/+19
| | | | an alias to --deps-mode=none
* unfinished work on multi-tree supportHisham Muhammad2012-09-251-10/+38
|
* Deconstruct full library filenames and rebuild them as every possible ↵Hisham Muhammad2012-09-181-2/+31
| | | | pattern listed in the patterns list. This is an improvement for issue #81.
* avoid accepting directories, suggested by Themroc@githubHisham Muhammad2012-05-071-1/+1
|
* Further steps for Lua 5.2 supportHisham Muhammad2012-03-091-2/+2
|
* Fix all documentation warnings reported by LDoc.Hisham Muhammad2011-12-211-0/+3
|
* isolate all references of "5.1" to luarocks.cfgHisham Muhammad2011-12-101-1/+1
|
* Fixes suggested by David ManuraHisham Muhammad2011-12-031-2/+2
| | | | ("hashes in versions numbers and git checkout warning")