haskell / haskell/cabal

`cabal build` does not rebuild `source-repository` deps that changed upstream

Open
#8,129 11 comments 0 reactions 0 assignees View on GitHub
cabal-install: source-repository-package type: discussion
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I observed the following:
1. In `cabal.project`, depend on an upstream git repo, with `tag` omitted (so, depend on the `master` branch).
2. Call `cabal build`. I my case this failed because an upstream type error.
3. Push a commit to upstream `master` (that fixes the type error).
4. Call `cabal build` again. It fails with the same error.

So, it seems that cabal's caching logic does not take upstream changes into account if the `tag` didn't change.
Modifying the `cabal.project` file with putting in `tag: ` then triggered the rebuild (and succeeded).

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.