Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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.

like image 288
mhwombat Avatar asked May 08 '14 14:05

mhwombat


1 Answers

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 ...
like image 137
bennofs Avatar answered Oct 19 '22 19:10

bennofs