Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cabal freeze should freeze either the hackage index or the pacakge revisions #7277

Closed
TomMD opened this issue Feb 11, 2021 · 1 comment
Closed

Comments

@TomMD
Copy link
Contributor

TomMD commented Feb 11, 2021

Describe the bug
I just experienced a revision cause no small havoc with my CI/CD and general flow for all the team. This revisions is here nick8325/quickcheck#326.

The fact that revisions have consequences is fine. The bug is that this project has a freeze file which should have ensured the project built the same now as it did six months ago. Clearly freeze is not yet sufficient.

I'm using cabal 3.2 right now.

Additional context

I propose two competing solutions:

Freeze the revisions

Treating revisions as first class makes the most sense to me. If it impacts the build and resulting code then its part of freeze. At the same time this can be verbose and counter productive - users can't just say "unfreeze up to the newest revision".

Freeze the hackage index

If we freeze the hackage index then users can benefit from a fixed set of packages, including revision, but have a single line to change and obtain new revisions but not change the package versions.

@phadej
Copy link
Collaborator

phadej commented Feb 12, 2021

cabal-install-3.4 writes index-state to freeze files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants