| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |\ |
|
| | | |
|
| | | |
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
Get rid of repeated missing deps checks
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is causing a conflict in the manifest file.
Looks like we'll need to extend the manifest format anyway.
|
| |_|/
|/| | |
|
| | | |
|
|\| |
| |/
|/| |
|
| |\
| | |
| | | |
Remove packages without manifest rebuild
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Rename `manif.update_manifest` to `manif.add_to_manifest`.
Add `manif.remove_from_manifest` that performs reverse action.
Use it in `repos.delete_version` to avoid rebuilding manifest
everytime a package is removed.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
`repo` sometimes means root dir and sometimes means rock dir.
At least do not reuse the same variable for both.
|
| | |
| | |
| | |
| | |
| | | |
Do not accept a hook function to call after storing results.
Simply call it on the outside after calling store_results.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of passing a function and its arguments to a helper
function for it to call it, make a copy of result, and return it,
call the function on the outer level and pass the result to helper.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
To get all installed versions of a package using deps_mode,
instead of deeply merging all manifests of corresponding trees,
shallowly merge only tables related to that package.
This affects speed of manifest manipulation and dependency resolution.
Minimal performance testing suggests 3x-4x speed-up on reinstallation
of a package using `luarocks make`.
|
| |\
| | |
| | | |
Fix absolute path detection on Windows
|
| | |
| | |
| | |
| | |
| | |
| | | |
Do not use "^[%.a-zA-Z]?:?[\\/]" as a pattern when checking if
a path is absolute on Windows. Check if there is a
directory separator after an optional drive letter instead.
|
| | | |
|
|\| | |
|
| |\| |
|
| | |
| | |
| | |
| | | |
Use string replacements instead of functions in calls to gsub.
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This avoids in practice a problem that occurs in this scenario:
1. user installs Lua 5.1, gets lua and lua5.1 binaries
2. user installs LuaRocks, it detects and uses lua
3. user installs Lua 5.2, gets lua and lua5.2 binaries (lua is replaced)
4. user installs LuaRocks with --lua-version=5.2, it detects and uses lua
5. luarocks-5.1 now uses lua, which is Lua 5.2, rockspecs get passed the wrong value of $(LUA)
|
| | |
|
|\| |
|
| |
| |
| |
| |
| | |
Let the user set their own custom platform entries,
but also provide fallbacks to make sure things work.
|
| | |
|
| |
| |
| |
| |
| | |
(e.g. allow it to find `lua5.1` when lua is 5.3 and only `--lua-version=5.1`
is given).
|
| |\ |
|
| | |\
| | | |
| | | | |
Make rock name arguments case insensitive
|
| | | | |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Internally package names are lowercased, however, rockspec may contain
a name with uppercase letters, which will be displayed by `luarocks show`.
Some commands, like `luarocks search`, `luarocks install` and `luarocks
build`, support this and convert input name to lowercase before passing
it to interanl functions.
Do the same thing in other commands accepting rock names.
|
| | | |
|