Commit 6d993e21 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Edward Z. Yang
Browse files

Degrade root-cmd error to warning.

shayan_ on IRC reported that if you had root-cmd set in your
.cabal/config, cabal install would always fail to run.  That's
bad, esp. because root-cmd would only have an effect when
--global was passed.  Downgrade the warning.

Signed-off-by: default avatarEdward Z. Yang <>
parent 8d2229ab
......@@ -210,8 +210,10 @@ install verbosity packageDBs repos comp platform progdb useSandbox mSandboxPkgIn
userTargets0 = do
unless (installRootCmd installFlags == Cabal.NoFlag) $
die $ "--root-cmd is no longer supported, "
warn verbosity $ "--root-cmd is no longer supported, "
++ "see"
++ " (if you didn't type --root-cmd, comment out root-cmd"
++ " in your ~/.cabal/config file)"
unless (fromFlag (configUserInstall configFlags)) $
warn verbosity $ "the --global flag is deprecated -- "
++ "it is generally considered a bad idea to install packages "
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment