Skip to content

Commit

Permalink
issue haskell#3933: skip the --global deprecation warning when instal…
Browse files Browse the repository at this point in the history
…ling to a sandbox
  • Loading branch information
dmwit authored and 23Skidoo committed Feb 19, 2017
1 parent e28abb9 commit 9098fac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cabal-install/Distribution/Client/Install.hs
Expand Up @@ -214,7 +214,9 @@ install verbosity packageDBs repos comp platform progdb useSandbox mSandboxPkgIn
++ "see https://github.com/haskell/cabal/issues/3353"
++ " (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"
Expand Down

0 comments on commit 9098fac

Please sign in to comment.