haskell / haskell/cabal

Adding to `extra-lib-dirs` in `.cabal/config` rebuilds everything

Open
#8,284 2 comments 1 reaction 0 assignees View on GitHub
re: config-file type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I added directories to `extra-lib-dirs` and `extra-include-dirs` in my `.cabal/config`, and now any `cabal build` will rebuild all dependencies, regardless whether they are affected by this change or not.

The current situation is sound and thus an improvement over:
- #2662

However, rebuilding everything is a crude solution and can be quite costly (e.g. `pandoc` takes 1h to build from scratch).
Just _adding_ library directories should be _monotonic_ and not require rebuilding everything.

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.