Cabal and --no-require-sandbox

In my ~/.cabal/config file I have

 require-sandbox: True 

According to the Cabal User Guide, I should be able to override this as follows:

 amy@wombat$ cabal install xmonad xmonad-contrib --no-require-sandbox cabal: unrecognized 'install' option `--no-require-sandbox' 

What am I doing wrong? I am using cabal-install version 1.21.0.0.

+8
haskell cabal-install
source share
1 answer

cabal-install sensitive to ordering command line flags corresponding to subcommands. --no-require-sanbox is a global flag that applies to all subcommands, not just install , so you need to put it before install :

 $ cabal --no-require-sandbox install ... 
+11
source share

All Articles