| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
This allows us to fail quicker before installing
a bunch of other rocks.
|
| |
|
| |
|
|
|
|
|
| |
Instead of pairs with number keys. Keeps parsed version representation
compact but puts items in regular arrays each on its own line.
|
|\
| |
| | |
Write rockspec infer scm url
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Perform detection later to take into account URL inferred from
local scm repo.
* Support more protocols instead of just 'git://'.
* Support Bitbucket and Gitlab in addition to Github.
* Strip trailing '.git'.
|
| | |
|
| |
| |
| |
| | |
Infer it same way `luarocks make` does.
|
| | |
|
|\| |
|
| |\
| | |
| | | |
Move common `luarocks.fs.{unix,win32}.tools` functions into a new module
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Default path for `write-rockspec` is now `.`.
* Use `scm` as default version in all cases.
* Infer rock name as base directory of current path when
passing `.` as path.
As a result, `luarocks write-rockspec` with no arguments
creates an scm rockspec.
|
| |
| |
| |
| |
| |
| |
| | |
It accepts name, version and location. If two are given,
the first one is considered the name and the second the location,
but the version is also set to the location. Reset it to allow guessing
it or using default (scm).
|
| |
| |
| |
| | |
Don't set repos.ok and repos.err
|
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |\
| | |
| | | |
Change output and order of deps installation
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
Installation success message is enough and is more important
(what's a manifest and why users should care?)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Move successful installation announcement into an util function.
Don't print that the rock was "built": sometimes there is nothing to
build (pure Lua rocks), and for C rocks compilation commands are printed
already.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When installing an old version of a rock that breaks existing
dependencies, removing previously installed version fails,
and --force is suggested. However, when installing using a rockspec
or a source rock --force and --force-fast are not forwarded to build command.
|
|/ / |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Compare latest available version with latest installed version,
not with lexicographically smallest installed version.
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Use mkstemp()/mkdtemp() where available
|
| | |
|
|\ \
| | |
| | | |
Show supported Lua versions on fail in search.find_suitable_rock
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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."
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Don't report missing manifests in 'luarocks list'
|
| |/ |
|
| |
| |
| |
| |
| |
| | |
In luarocks.fs.unix.tools.unpack_archive execute commands in quiet
mode (that is, silenced by default, but not with --verbose), like
in luarocks.fs.unzip and luarocks.fs.win32.tools.unpack_archive.
|
|/
|
|
| |
Also use vars.TAR instead of literal "tar" when unpacking .tar.bz2
|