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

Fix dhall freeze --cache to support v21.0.0 #2350

Merged
merged 3 commits into from
Dec 15, 2021
Merged

Conversation

Gabriella439
Copy link
Collaborator

Fixes #2347

This now uses missing sha256:… for the frozen import so that the
import still succeeds even if the hash doesn't match (which was the
original intention of the --cached flag; otherwise it would be
useless).

Fixes #2347

This now uses `missing sha256:…` for the frozen import so that the
import still succeeds even if the hash doesn't match (which was the
original intention of the `--cached` flag; otherwise it would be
useless).
stack.yaml Outdated Show resolved Hide resolved
… as suggested by @sjakobi
@Gabriella439 Gabriella439 merged commit 0af9841 into master Dec 15, 2021
@Gabriella439 Gabriella439 deleted the gabriella/2347 branch December 15, 2021 16:38
Gabriella439 added a commit to dhall-lang/dhall-lang that referenced this pull request Apr 2, 2023
Note that the large number of changes to use `missing` is
intentional (it's because of the `dhall` upgrade).  See:

dhall-lang/dhall-haskell#2350
Gabriella439 added a commit that referenced this pull request Apr 2, 2023
The fix in #2350
introduced a new problem: now `dhall freeze --cache --all` is not
idempotent and will fail if you run it a second time on the same due to
trying to resolve the `missing` import.  This change fixes that.
Gabriella439 added a commit that referenced this pull request Apr 2, 2023
The fix in #2350
introduced a new problem: now `dhall freeze --cache --all` is not
idempotent and will fail if you run it a second time on the same due to
trying to resolve the `missing` import.  This change fixes that.
locallycompact pushed a commit to locallycompact/dhall-haskell that referenced this pull request Apr 26, 2023
The fix in dhall-lang#2350
introduced a new problem: now `dhall freeze --cache --all` is not
idempotent and will fail if you run it a second time on the same due to
trying to resolve the `missing` import.  This change fixes that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output of "dhall freeze --cache" no longer works with Dhall v21.0.0
2 participants