haskell / haskell/cabal

`cabal-validate`: Build products are not shared with `cabal build`

Open
#10,567 0 comments 0 reactions 0 assignees View on GitHub
cabal-validate meta: tracking re: devx type: testing
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

`validate.sh` creates a custom `dist-newstyle` directory, but won't reuse build products from `cabal build`, even for the same compiler, forcing pointless rebuilds.

**Proposal:** If no `--with-compiler` is passed and the `dist-newstyle-validate-*` directory doesn't exist, `cabal-validate` should copy `dist-newstyle` to `dist-newstyle-validate-*` as a starting point. Should this be the default?

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.