-
Notifications
You must be signed in to change notification settings - Fork 211
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
Output of "dhall freeze --cache" no longer works with Dhall v21.0.0 #2347
Comments
I just found dhall-lang/dhall-lang#1181 in which the However, that appears to leave the code generated by Would it be sufficient to revise
This seems to satisfy the requirement that |
That seems to fit with the documented intention of the @Gabriel439, what do you think? |
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).
Fix is up here: #2350 |
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).
Thank you, @Gabriel439! |
You're welcome! 😊 |
The
dhall freeze
command has a--cache
flag thats described purpose is to "Add fallback unprotected imports when using integrity checks purely for caching purposes". However, in dhall-haskell 1.40.1 the code generated from using this feature no longer works if the fetched URL content does not match the hash.Example:
The expectation I had from the description ofdhall freeze --check
was that the?
operator should fallback from the integrity-check-failing import to the unprotected URL import and the expression should have succeeded (as long as https://prelude.dhall-lang.org/List/map could be loaded). Put simply, it seems this should work without emitting an error message.Isdhall freeze --check
's description out of date, dhall-haskell's implementation buggy, or my interpretation of all this faulty?(Update: Given the breaking change to
?
in Dhall v21.0.0, it seems the issue here is in the output ofdhall freeze --cache
not being revised to adapt to the breaking change.)The text was updated successfully, but these errors were encountered: