diff options
author | mpeterv <mpeterval@gmail.com> | 2016-03-19 15:50:20 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-04-19 00:37:34 +0300 |
commit | 302025e1812ea790248a14b425f8c46b153af622 (patch) | |
tree | 134de93d58a6aab93ec28279c15a5d9673a48531 /lfw | |
parent | 608467a030aa14919e06b2ff8cae529d0db273bd (diff) | |
download | luarocks-302025e1812ea790248a14b425f8c46b153af622.tar.gz luarocks-302025e1812ea790248a14b425f8c46b153af622.tar.bz2 luarocks-302025e1812ea790248a14b425f8c46b153af622.zip |
Show if rock is supported on other Lua versions on search fail
Supporting changes:
* Change structure of manifest cache: map from repo_url to tables
mapping from lua versions to manifests.
* New manif_core cache_manifest and get_cached_manifest functions
to hide cache implementation.
* lua_version optional argument for functions between
search.find_suitable_rock and manifest loader.
Main changes:
* Add a helper function supported_lua_versions that checks which
Lua versions can satisfy a query.
* Use this helper function when a search for a rock failed,
in search.find_suitable_rock, if constraints can be satisfied
under a different Lua version mention that in the error message.
Examples of error messages:
* Constraint "sailor": "sailor supports only Lua 5.1 and
Lua 5.2 but not Lua 5.3."
* Constraint "sailor 0.5": "sailor 0.5 supports only Lua 5.1
and Lua 5.2 but not Lua 5.3."
* Constraint "sailor >= 0.5": "Matching sailor versions support
only Lua 5.1 and Lua 5.2 but not Lua 5.3."
Diffstat (limited to 'lfw')
0 files changed, 0 insertions, 0 deletions