使用 stack.yaml 配置安装包
Install package using stack.yaml config
我正在尝试安装 yi
。
我有以下 stack.yaml
文件:
resolver: lts-8.12
extra-deps:
- yi-frontend-pango-0.13.5
A stack install yi
给我一个错误:Stack looks for packages in the directories configured in the 'packages' variable defined in your stack.yaml
。
我只能通过编辑我的全局 stack.yaml
配置来安装它吗?
完整的错误应该类似于
Stack looks for packages in the directories configured in the
'packages' variable defined in your stack.yaml The current entry
points to /home/mgsloan/fpco/test-stack/stack-overflow-43575553/ but
no .cabal file could be found there.
问题是 packages
字段默认为当前目录,因为仅将它与一个包一起使用是一种常见的用例。您可以通过执行以下操作来覆盖它:
packages: []
我正在尝试安装 yi
。
我有以下 stack.yaml
文件:
resolver: lts-8.12
extra-deps:
- yi-frontend-pango-0.13.5
A stack install yi
给我一个错误:Stack looks for packages in the directories configured in the 'packages' variable defined in your stack.yaml
。
我只能通过编辑我的全局 stack.yaml
配置来安装它吗?
完整的错误应该类似于
Stack looks for packages in the directories configured in the 'packages' variable defined in your stack.yaml The current entry points to /home/mgsloan/fpco/test-stack/stack-overflow-43575553/ but no .cabal file could be found there.
问题是 packages
字段默认为当前目录,因为仅将它与一个包一起使用是一种常见的用例。您可以通过执行以下操作来覆盖它:
packages: []