Skip to content

Commit

Permalink
Allow passing --force and --force-fast to luarocks install in all c…
Browse files Browse the repository at this point in the history
…ases

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.
  • Loading branch information
mpeterv committed May 10, 2016
1 parent 8915604 commit 0a56441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luarocks/install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0a56441

Please sign in to comment.