[Haskell-cafe] Stack transitive dependencies
Michael Snoyman
michael at snoyman.com
Thu Aug 27 09:36:51 UTC 2015
Currently, stack doesn't do any importing of settings between stack.yaml
files, so the contents of bar's extra-deps are irrelevant. stack is just
looking at bar's cabal file, detecting that it needs another package as a
dependency, and suggesting you add it.
There are discussions on the issue tracker about allowing some kind of
include syntax, but it would still be a separate syntax to what we have
today, since they're different use cases.
On Wed, Aug 26, 2015, 6:09 PM Corentin Dupont <corentin.dupont at gmail.com>
wrote:
> Hello,
> I have a package depending on another:
>
> Foo/stack.yaml:
>
> flags: {}
> packages:
> - '.'
> - location: ../Bar
> extra-dep: true
> extra-deps:
> - Bar-0.7.6
> resolver: lts-2.19
>
> When I compile (stack build), I obtain:
>
> -- While attempting to add dependency,
> Could not find package DebugTraceHelpers in known packages
>
> -- Failure when adding dependencies:
> DebugTraceHelpers: needed (==0.12.*), but not present in build plan,
> latest is 0.12
> needed for package: Bar-0.7.6
>
> I find it strange that it asks for DebugTraceHelpers because it's not a
> direct dependency of my package, but a dependency of a dependency.
> It is correctly mentioned in Bar/stack.yml:
>
> flags: {}
> packages:
> - '.'
> extra-deps:
> - DebugTraceHelpers-0.12
> resolver: lts-2.19
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150827/c2e50414/attachment.html>
More information about the Haskell-Cafe
mailing list