haskell / haskell/cabal

'cabal freeze' can create a constraint on 'rts'

Open
#2,788 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/freeze type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

@grayjay [writes](https://github.com/haskell/cabal/pull/2787/files#r37700715):

> I also found that `cabal freeze` can create a constraint on `rts`, even though `rts` isn't in the source index.

I think that `freeze` shouldn't do that, since `rts` isn't installable and its version doesn't change with GHC versions (though it shouldn't matter anyway).

/cc @benarmston

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation and tests for the `cabal freeze` command, then trace how resolved packages become constraints and why `rts` is included despite not being in the source index. Done means freeze no longer writes an `rts` constraint while retaining constraints for installable packages; add or update coverage for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.