Commit 9098fac6 authored by Daniel Wagner's avatar Daniel Wagner Committed by Mikhail Glushenkov
Browse files

issue #3933: skip the --global deprecation warning when installing to a sandbox

parent e28abb9c
......@@ -214,7 +214,9 @@ install verbosity packageDBs repos comp platform progdb useSandbox mSandboxPkgIn
++ "see"
++ " (if you didn't type --root-cmd, comment out root-cmd"
++ " in your ~/.cabal/config file)"
unless (fromFlag (configUserInstall configFlags)) $
let userOrSandbox = fromFlag (configUserInstall configFlags)
|| isUseSandbox useSandbox
unless userOrSandbox $
warn verbosity $ "the --global flag is deprecated -- "
++ "it is generally considered a bad idea to install packages "
++ "into the global store"
Markdown is supported
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