haskell / haskell/cabal

cabal freeze should take current set of packages installed into account

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

Description

Scenario:
1. Update list of packages in `my-package.cabal`.
2. Use `cabal install --only-dep`
3. Use `cabal configure`
4. Use `cabal build`
5. Make sure it compiles and works as expected.
6. Run `cabal freeze` to freeze this particular set of versions as working set of packages.

Expected:

In 6 `cabal freeze` freezes versions that were used during build in 5.

Current:

In 6 `cabal freeze` freezes some other set of packages somehow not exactly related to what was build.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the six-step scenario using `cabal install --only-dep`, `cabal configure`, `cabal build`, and `cabal freeze`. Compare the versions frozen in step 6 with the package versions actually used during the build; done means `cabal freeze` records that working set consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
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.