Cabal and --no-require-sandbox
Asked Answered
B

1

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.

Byssus answered 8/5, 2014 at 14:10 Comment(0)
W
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 ...
Wampumpeag answered 8/5, 2014 at 15:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.