Skip to content

new-build dependency resolution performance problems with custom builds #6309

@alex-rozenshteyn-leapyear

Description

Context
I'm converting a project that uses custom builds and stack to use cabal new-build. I'm running into performance problems.

repro.tar.gz

Describe the bug
A clear and concise description of what the bug is.

On a project with 22 packages, dependency resolution is taking 2 minutes. The structure of the project is as follows:

To Reproduce
Steps to reproduce the behavior:

$ mkdir test
$ wget https://github.com/haskell/cabal/files/3774090/repro.tar.gz
$ tar xf repro.tar.gz
$ time cabal v2-build --dry-run

Please use version-prefixed commands (e.g. v2-build or v1-build) to avoid ambiguity.

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

It should be faster.

System information

  • PopOS
  • cabal-install version 3.0.0.0
  • compiled using version 3.0.0.0 of the Cabal library
  • The Glorious Glasgow Haskell Compilation System, version 8.2.2

Additional context
The actual project I'm trying to migrate has 72 packages.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions