8

In my ~/.cabal/config file, I have

require-sandbox: True

According to the Cabal User Guide, I should be able to override this like so:

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

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

mhwombat
  • 8,026
  • 28
  • 53

1 Answers1

11

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

$ cabal --no-require-sandbox install ...
bennofs
  • 11,873
  • 1
  • 38
  • 62