summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fix regression in dependency matching of luarocks.loaderHisham Muhammad2020-04-131-2/+8
| | | | | | | | | | | | Regression introduced in https://github.com/luarocks/luarocks/commit/65c417e0ecda55f44c691df032163a8c08f0b52a Thanks to @lhemkendreis for the detailed description and suggested fix, which was applied here! Added a regression test which exercises dependency matching. Closes #1175.
* fix detection of Lua path based on arg variableHisham Muhammad2020-04-131-2/+17
|
* fs.lua: be more resilient on errors getting the unixtimeHisham Muhammad2020-04-131-1/+1
|
* report on errors if running from the binaryHisham Muhammad2020-04-131-0/+3
|
* do not call Lua interpreter when making wrapper for luarocks binaryHisham Muhammad2020-04-133-0/+26
| | | | Closes #1174.
* Fix code for disabling mirrors on network errorsHisham Muhammad2020-04-131-6/+6
| | | | | | | | | | The idea is to try each mirror in order, but when one fails with a network error we mark it so we don't keep trying on each dependency. The logic was wrong in that it marked the entire entry (consisting of multiple mirrors) instead of marking mirrors individually. Closes #1179.
* fs: always check for failure of fs.which_tool (#1157)Hisham Muhammad2020-02-203-22/+31
|
* make: support --only-depsHisham Muhammad2020-02-141-4/+7
| | | | Closes #1156.
* accept --deps-only as an alias to --only-depsHisham Muhammad2020-02-143-2/+3
|
* show: accept a substring when unambiguous and matches a single entryHisham Muhammad2020-02-132-3/+19
|
* remove debuggingHisham Muhammad2020-02-121-1/+0
|
* fix downgrades of rocks containing directories (#1151)Hisham Muhammad2020-02-071-3/+3
| | | | Fixes #1141
* fs.lua: fix error message when source file is missingHisham Muhammad2020-02-051-1/+15
| | | | Fixes #1147.
* Add OpenBSD specific dependency paths.Jan S2020-02-021-0/+1
| | | | This commit enables luarocks to be configured and build on OpenBSD.
* Windows: force .lib for LUALIBHisham Muhammad2020-01-251-0/+4
|
* speed up external dependency checkHisham Muhammad2020-01-251-20/+39
|
* build: do not download sources when building only depsHisham Muhammad2020-01-251-1/+1
|
* Remove hack intended to make dashed commands workPaul Ouellette2020-01-235-11/+4
| | | | | | It didn't work and is no longer necessary. Also simplifies the addition of some hidden aliases for old option names.
* util: use native slashesHisham Muhammad2020-01-141-3/+3
|
* util: portable tmpname that gives a full path on WindowsHisham Muhammad2020-01-141-1/+4
| | | | Fixes #1058.
* cfg: remove redundant assignmentHisham Muhammad2020-01-141-2/+0
|
* cmd: cleanup slashesHisham Muhammad2020-01-141-2/+3
|
* cmd: fallback to actual PATH searchHisham Muhammad2020-01-142-19/+38
|
* fs: be verbose about builtin fs functions as wellHisham Muhammad2020-01-141-1/+15
|
* Add hidden command and option aliasesPaul Ouellette2020-01-141-7/+29
|
* git: add support for shallow recommendationsPedro Tammela2019-12-171-1/+10
| | | | | | | | | | | | | In more recent versions of git, the .gitmodules file can be configured to recommend if a submodule should be cloned as shallow or not. Add support for this feature since it gives the rock maintainer more control over which submodules should be shallow cloned. The rock maintainer may set the boolean `shallow` to true or false in .gitmodules. If omitted it is treated as false. Signed-off-by: Pedro Tammela <pctammela@gmail.com>
* win32: fix split root for quoted absolute path handlingHisham Muhammad2019-12-122-19/+36
|
* Refactor command line handling of namespacesPaul Ouellette2019-12-0220-113/+108
|
* Add quotes around usernames to handle usernames with space on WindowsStephen Baynham2019-12-021-2/+2
|
* Add --no-manifest flag to skip creating/updating a global manifestdaurnimator2019-11-305-4/+25
|
* dependency pinning: luarocks.lock file and --pin flagHisham Muhammad2019-11-2910-113/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* do not warn about skipping dependency checksHisham Muhammad2019-11-292-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
* refactor dependency scanning for reuse when building lockfileHisham Muhammad2019-11-298-111/+113
|
* config: fix --unsetHisham Muhammad2019-11-291-1/+1
|
* repos: speed up file installs and deletesHisham Muhammad2019-11-291-24/+71
|
* cache rockspecs and src.rocks and check timestampHisham Muhammad2019-11-293-28/+52
|
* Add --check-lua-versions flag (#1115)Hisham Muhammad2019-11-2310-49/+71
| | | | Only check for availability of a rock for other Lua versions if the user explicitly requests so.
* Improve jit detection to support moonjit (#1116)François Perrad2019-11-221-1/+1
| | | | | moonjit is a fork of LuaJIT, where jit.version = 'moonjit 2.1.1' Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
* Support make --no-doc (#1092)Paul Ouellette2019-11-154-30/+32
| | | | | | * Support make --no-doc * Add test for make --no-doc
* repos: rollback on installation failure (#1101)Hisham Muhammad2019-10-181-14/+54
|
* manif.writer: make remove_from_manifest more resilient (#1096)Hisham Muhammad2019-09-231-0/+9
| | | Fixes #1095.
* vers: add extra metamethod needed by Lua 5.4 (#1088)Dude1121132019-09-091-0/+6
|
* fix Windows cross-compilation hackHisham Muhammad2019-09-052-13/+15
|
* fix local search of manifestsHisham Muhammad2019-09-051-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.
* cfg: only override config file values with detected when giving flagsHisham Muhammad2019-09-041-29/+32
|
* Fix version detectionHisham Muhammad2019-09-041-0/+3
|
* cmd: avoid changing add_to_parser if command is missingdaurnimator2019-09-031-13/+12
|
* cmd: catch errors loading command modulesHisham Muhammad2019-09-031-11/+22
| | | | This should be useful for external modules.
* cmd: add compatibility mode for pre-argparse external commandsHisham Muhammad2019-09-031-0/+15
| | | | See #1070.
* fs: fix Lua wrapper for interactive modeHisham Muhammad2019-09-032-2/+5
|