haskell / haskell/cabal

Slow dependency resolution using solver option `--reorder-goals`

Open
#7,784 19 comments 0 reactions 0 assignees View on GitHub
cabal-install: solver type: performance
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
Dependency resolution is very slow on Windows. For example [here](https://github.com/input-output-hk/cardano-node/runs/4052457976?check_suite_focus=true), it is taking `37` minutes:

![image](https://user-images.githubusercontent.com/63014/139519287-8c3d33c9-9961-4af5-8579-8c4f81667ce6.png)

**To Reproduce**
Steps to reproduce the behavior:

On Windows, install `msys2`. Then in a bash shell:

```
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout 66f017f16633f2060db25e17c170c2afa0f2a8a1
./configure
make
make install
cd -
```

Then:

```
git clone git@github.com:input-output-hk/cardano-node.git
cd cardano-node
cabal build all --dry-run
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**System information**
- Operating system: Windows
- `cabal-3.6.2.0`, `ghc-8.10.4`

**Additional context**
N/A

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.