haskell / haskell/cabal

Allow disabling freeze files in cabal.project.local

Open
#6,041 3 comments 5 reactions 0 assignees View on GitHub
cabal-install: cmd/build cabal-install: v2-build system type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I would like to commit a `cabal.project.freeze` file to my repository so that non-Haskell savvy users can easily/reliably build my Haskell code, but since I also use the repository to actively develop this would make it tricky/annoying to add new packages/change bounds, etc. while programming.

If there was a way to override/skip freeze files in `cabal.project.local` I could simply commit the freeze file in the repo and, in my development clone, modify the `cabal.project.local` that I have anyway to ignore the freeze file while developing.

Contributor guide

Open the contributing guide

Research direction

The request concerns how cabal.project.freeze and cabal.project.local are discovered and applied; start by tracing the existing freeze-file handling in the Cabal repository. Define the override behavior for a local configuration, then add coverage showing that development settings can skip the committed freeze file while normal builds still use it.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.