gpt4 book ai didi

项目特定位置的 Haskell 堆栈

转载 作者:行者123 更新时间:2023-12-05 04:38:23 29 4
gpt4 key购买 nike

我正在按照指南 here ,它告诉我:

The stack setup will download the compiler if necessary in an isolatedlocation (default ~/.stack) that won't interfere with any system-levelinstallations. (For information on installation paths, please use thestack path command.).

我正在尝试使用自定义位置,例如 ~/myproject/myenvironment。当我使用stack path 命令时,我看到了很多路径,例如stack-rootproject-root config-location,但我看不到任何使用 stack path 设置自定义位置的方法。我怎样才能隔离我的堆栈而不是在 ~/.stack 之外运行,而是通过自定义位置运行?我可以给 stack update 什么参数,例如本地化到 ~/myproject/myenvironment

最佳答案

Set the environment variable STACK_ROOT
stack命令的参数--stack-root只能调用一次。
stack path --stack-root 命令仅用于列出变量。

资源:

Haskell Stack User Guide chapter Setting stack root location
https://github.com/commercialhaskell/stack/issues/1148

stack --help
...
--stack-root STACK-ROOT Absolute path to the global stack root directory
(Overrides any STACK_ROOT environment variable)
...
stack path --help
...
--stack-root Global stack root directory
...

关于项目特定位置的 Haskell 堆栈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70615908/

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