-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Labels
bugSomething isn't workingSomething isn't working
Description
See https://github.com/shlevy/h.nix-plugin-error-demo
We have a package with a plugin and another package that uses that plugin. Using cabal.project, this builds fine, using stack.yaml, this fails with:
<no location info>: error:
Failed to load interface for ‘GHC.Driver.Plugins’.
no unit id matching ‘ghc-9.10.2-inplace’ was found
With the stack-based build, configure flags has:
--dependency=ghc=ghc-9.10.2-CwCnWKm7AFqB0NOBlArzcl
Whereas with the cabal-based build, we have:
--dependency=ghc=ghc-9.10.2-inplace
One suspicious aspect is that we need to set custom configure flags for unix and directory (see commercialhaskell/stackage#7847). But setting those flags for the cabal project does nothing, presumably since all of the affected packages are provided by the compiler; why aren't they provided by the compiler for the stack build?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working