haskell / haskell/cabal

cabal new-build does not track files added via TH’s addDependentFile

Open
#4,746 62 comments 9 reactions 0 assignees View on GitHub
blocked: ghc blocked: upstream cabal-install: v2-build system re: extra-source-files type: discussion type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

### Steps to reproduce
* Download https://gist.github.com/cocreature/d07ef6f35f7bd9043db50794fe31e977.
* Build using `cabal new-build`
* Edit `fileinput`
* Try rebuilding using `cabal new-build`.

### Expected behavior
`cabal new-build` rebuilds because `fileinput` has changed.

### Actual behavior
`cabal new-build` exits without rebuilding after saying `Up to date`.

This issue affects both `cabal-2.0` as well as the master branch.

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.