Git 额外部门回购
Git repos in extra-deps
用 Stack
引用 git
存储库的特定版本的正确方法是什么?
Stack 抱怨 stack.yaml
的 extra-deps
部分的第一个字段存在解析错误。以下代码段基于官方 Stack 文档中的示例,我不太确定为什么它不起作用。
# Dependency packages to be pulled from upstream that are not in the resolver
# (e.g., acme-missiles-0.3)
extra-deps:
- git: https://github.com/jwaldmann/moo
commit: b429a7d371c0b268a4bb8dbea8044054aaf04cd5
- git: https://github.com/jwaldmann/monad-mersenne-random
commit: d1f949fe60dc0c0cfbd310b339fe7fd5ecf4c5f5
- gray-code-0.3.1
#extra-deps: [gray-code-0.3.1]
参见 this project 中的示例,其中有很多来自 GitHub.
的外部依赖项
您可能正在查看有关堆栈最新开发版本的文档。您正在使用的语法将在 stack 1.6 和更新版本中得到支持,这些版本将在几天后发布。
请注意文档顶部的免责声明 - https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md
而您应该查看 https://docs.haskellstack.org/en/stable/yaml_configuration/
用 Stack
引用 git
存储库的特定版本的正确方法是什么?
Stack 抱怨 stack.yaml
的 extra-deps
部分的第一个字段存在解析错误。以下代码段基于官方 Stack 文档中的示例,我不太确定为什么它不起作用。
# Dependency packages to be pulled from upstream that are not in the resolver
# (e.g., acme-missiles-0.3)
extra-deps:
- git: https://github.com/jwaldmann/moo
commit: b429a7d371c0b268a4bb8dbea8044054aaf04cd5
- git: https://github.com/jwaldmann/monad-mersenne-random
commit: d1f949fe60dc0c0cfbd310b339fe7fd5ecf4c5f5
- gray-code-0.3.1
#extra-deps: [gray-code-0.3.1]
参见 this project 中的示例,其中有很多来自 GitHub.
的外部依赖项您可能正在查看有关堆栈最新开发版本的文档。您正在使用的语法将在 stack 1.6 和更新版本中得到支持,这些版本将在几天后发布。
请注意文档顶部的免责声明 - https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md
而您应该查看 https://docs.haskellstack.org/en/stable/yaml_configuration/