aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-12-02Add quotes around usernames to handle usernames with space on WindowsStephen Baynham1-2/+2
2019-11-30Add --no-manifest flag to skip creating/updating a global manifestdaurnimator6-5/+35
2019-11-29dependency pinning: luarocks.lock file and --pin flagHisham Muhammad22-117/+590
This adds support for pinning dependencies in projects and rocks: * Adds a new flag called `--pin` which creates a `luarocks.lock` when building a rock with `luarocks build` or `luarocks make`. This lock file contains the exact version numbers of every direct or indirect dependency of the rock (in other words, it is the transitive closure of the dependencies.) For `make`, the `luarocks.lock` file is created in the current directory. The lock file is also installed as part of the rock in its metadata directory alongside its rockspec. When using `--pin`, if a lock file already exists, it is ignored and overwritten. * When building a rock with `luarocks make`, if there is a `luarocks.lock` file in the current directory, the exact versions specified there will be used for resolving dependencies. * When building a rock with `luarocks build`, if there is a `luarocks.lock` file in root of its sources, the exact versions specified there will be used for resolving dependencies. * When installing a `.rock` file with `luarocks install`, if the rock contains a `luarocks.lock` file (i.e., if its dependencies were pinned with `--pin` when the rock was built), the exact versions specified there will be used for resolving dependencies.
2019-11-29do not warn about skipping dependency checksHisham Muhammad2-4/+1
These are either caused by recursion of pinned dependencies or were explicitly requested by the user with --nodeps a.k.a. --deps-mode=none
2019-11-29refactor dependency scanning for reuse when building lockfileHisham Muhammad9-112/+114
2019-11-29tests: simplify descriptions and set lazy setup/teardownHisham Muhammad2-35/+35
2019-11-29config: fix --unsetHisham Muhammad2-1/+22
2019-11-29repos: speed up file installs and deletesHisham Muhammad1-24/+71
2019-11-29cache rockspecs and src.rocks and check timestampHisham Muhammad3-28/+52
2019-11-23Add --check-lua-versions flag (#1115)Hisham Muhammad10-49/+71
Only check for availability of a rock for other Lua versions if the user explicitly requests so.
2019-11-22Improve jit detection to support moonjit (#1116)François Perrad1-1/+1
moonjit is a fork of LuaJIT, where jit.version = 'moonjit 2.1.1' Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
2019-11-15Support make --no-doc (#1092)Paul Ouellette5-30/+48
* Support make --no-doc * Add test for make --no-doc
2019-10-18repos: rollback on installation failure (#1101)Hisham Muhammad2-15/+88
2019-09-23manif.writer: make remove_from_manifest more resilient (#1096)Hisham Muhammad1-0/+9
Fixes #1095.
2019-09-09vers: add extra metamethod needed by Lua 5.4 (#1088)Dude1121131-0/+6
2019-09-05Release 3.2.1v3.2.1Hisham Muhammad5-7/+8
2019-09-05fix Windows cross-compilation hackHisham Muhammad2-13/+15
2019-09-05GNUmakefile: fix concatenationHisham Muhammad1-2/+2
2019-09-05smoke test `make bootstrap` and `luarocks install` as wellHisham Muhammad1-0/+58
2019-09-05fix local search of manifestsHisham Muhammad1-1/+1
Since #1065 it was failing to find the unversioned `manifest` files inside `<rocks_tree>/lib/luarocks/rocks-5.x/`. The result was that `luarocks install foo` worked but then `luarocks show foo` didn't.
2019-09-04run smoke_test for dev packageHisham Muhammad1-0/+1
2019-09-04cfg: only override config file values with detected when giving flagsHisham Muhammad1-29/+32
2019-09-04Fix version detectionHisham Muhammad1-0/+3
2019-09-03cmd: avoid changing add_to_parser if command is missingdaurnimator1-13/+12
2019-09-03cmd: catch errors loading command modulesHisham Muhammad1-11/+22
This should be useful for external modules.
2019-09-03cmd: add compatibility mode for pre-argparse external commandsHisham Muhammad4-0/+99
See #1070.
2019-09-03fs: fix Lua wrapper for interactive modeHisham Muhammad3-2/+44
2019-09-03Fix manif.load_manifest changing current directoryPaul Ouellette1-2/+2
2019-09-03build: fix --branch flagHisham Muhammad7-27/+67
The `--branch` flag is optional and takes a string argument. The `--branch` flag does not make sense for `luarocks make` because it does not fetch sources, it builds/installs based on whatever is in the current directory. This also adds tests that verify the behavior, but these don't run in Travis CI because of issues running a Git daemon there. They were verified locally.
2019-09-03Fix `luarocks build --pack-binary-rock --no-doc`Paul Ouellette1-4/+4