gpt4 book ai didi

haskell - Cabal 和 --no-require-sandbox

转载 作者:行者123 更新时间:2023-12-04 06:37:43 24 4
gpt4 key购买 nike

在我的 ~/.cabal/config文件,我有

require-sandbox: True

根据 cabal 用户指南,我应该能够像这样覆盖它:
amy@wombat$ cabal install xmonad xmonad-contrib --no-require-sandbox
cabal: unrecognized 'install' option `--no-require-sandbox'

我究竟做错了什么?我正在使用 cabal-install 版本 1.21.0.0。

最佳答案

cabal-install对与子命令相关的命令行标志的顺序很敏感。 --no-require-sanbox是一个适用于所有子命令的全局标志,而不仅仅是 install , 所以你需要把它放在 install 之前:

$ cabal --no-require-sandbox install ...

关于haskell - Cabal 和 --no-require-sandbox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23544266/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com