【发布时间】:2021-07-07 23:58:38
【问题描述】:
我有两个 Haskell 库 lib-a 和 lib-b,都托管在私有 git 存储库上。 lib-b 依赖于lib-a,两者都没有问题。
现在我想将lib-b 导入另一个项目,然后使用git 指令将其添加到堆栈配置中,如下所示:
- git: git@github.com:dataO1/lib-b.git
commit: deadbeef102958393127912734
Stack 似乎仍然需要 lib-a 的特定版本:
In the dependencies for application-0.1.0.0:
lib-a needed, but the stack configuration has no specified version (no package with that name found,
perhaps there is a typo in a package's build-depends or an omission from the stack.yaml packages
list?)
needed due to application-0.1.0.0 -> lib-b-0.1.0.0
现在的问题是,可以堆栈以某种方式找出嵌套 git 依赖项的特定版本,而无需明确指定它们吗?如果项目增长,我不想在每次更新 lib-a 时手动调整。
旁注:我对所有三个堆栈项目都使用 nixOS 和 nix 指令。
【问题讨论】:
标签: haskell haskell-stack