堆栈:什么意思 "No extra-dep setting found for package at URL"

stack: what means "No extra-dep setting found for package at URL"

我的 stack.yaml 中包含 github 的包裹。当我 运行 堆栈求解器时,我收到消息:No extra-dep setting found for package at URL:

我在堆栈文档中找不到这种情况的文档。警告表示什么?应采取哪些纠正措施?

flags: {}
extra-package-dbs: []
packages:
- '.'
- location: /home/frank/Workspace8/repo8/uniform/uniform-algebras
  extra-dep: true
- location: /home/frank/Workspace8/repo8/uniform/uniform-time
  extra-dep: true
- location:  
      git: https://github.com/andrewufrank/uniform-strings.git
      commit:  ba8bd37567758c1807bf470b3dda4f471cee0f5f
      extra-dep: true
- location:  
      git: https://github.com/andrewufrank/uniform-error.git
      commit:  46c62fcf8b4d6b7a5a9a3622c724ab573fce295d
      extra-dep: true 
extra-deps:
- data-easy-0.7.0
- pipes-4.3.2
resolver: lts-8.13

这只是一条警告消息,可以安全地忽略它。不确定为什么会出现此警告,但包裹似乎确实标有 "extra-dep: true"

您收到错误消息是因为最后两个包位置的 extra-dep 字段位于 YAML 层次结构中的错误级别。 Stack 没有从预期的位置找到它们并相应地表现。

要解决此问题,您应该按如下方式在层次结构中向上移动字段:

- location:  
      git: https://github.com/andrewufrank/uniform-strings.git
      commit:  ba8bd37567758c1807bf470b3dda4f471cee0f5f
  extra-dep: true
- location:  
      git: https://github.com/andrewufrank/uniform-error.git
      commit:  46c62fcf8b4d6b7a5a9a3622c724ab573fce295d
  extra-dep: true

忽略警告而不修复问题会导致 Stack 将依赖项视为项目的一部分。例如,当您要求 Stack 运行 项目中的测试时,它也会尝试 运行 这些依赖项中的测试。通常这是不需要的并且相当混乱。