From 0a56441600eda3d68b0f84039664a282bf407361 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Tue, 10 May 2016 20:28:00 +0300 Subject: Allow passing --force and --force-fast to `luarocks install` in all cases 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. --- src/luarocks/install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua index e7e6bb20..b6af43cc 100644 --- a/src/luarocks/install.lua +++ b/src/luarocks/install.lua @@ -170,7 +170,7 @@ function install.run(...) if name:match("%.rockspec$") or name:match("%.src%.rock$") then util.printout("Using "..name.."... switching to 'build' mode") local build = require("luarocks.build") - return build.run(name, util.forward_flags(flags, "local", "keep", "deps-mode", "only-deps")) + return build.run(name, util.forward_flags(flags, "local", "keep", "deps-mode", "only-deps", "force", "force-fast")) elseif name:match("%.rock$") then if flags["only-deps"] then ok, err = install.install_binary_rock_deps(name, deps.get_deps_mode(flags)) -- cgit v1.2.3-55-g6feb