commercialhaskell / commercialhaskell/stack

Stack fails to build "mutually recursive" packages

Open
#2,583 18 comments 0 reactions 0 assignees View on GitHub
component: build further investigation required resolution: upstream issue type: bug type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### General summary/comments (optional)

I have a two-package project, where the library in package `two` depends on the library in package `one`.

However, there's also an executable component in package `one` that depends on library `two`. For some reason, plan construction fails, even when I try to build single components.
### Steps to reproduce
1. `git clone git@github.com:mitchellwrosen/stack-issue-1.git`
2. `stack build`
### Expected

Build succeeds
### Actual

Build fails with:

```
While constructing the build plan, the following exceptions were encountered:

Plan construction failed.
```
### Stack version

Version 1.2.1, Git revision 8ebadf3d8614bd0390d8f94a3198eb47ec36c906 (dirty) (4086 commits) x86_64 hpack-0.14.1
### Method of installation

Built from source

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.