dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
908 stars 211 forks source link

dhall freeze produces "missing" in frozen import expression #2485

Closed mmhat closed 1 year ago

mmhat commented 1 year ago

Currently the dhall freeze command (executable build from https://github.com/dhall-lang/dhall-haskell/commit/78b1c9f4520a2db1d8bb07738f4dfec6d51d4344) appears to be broken. Consider the following two dhall files:

-- a.dhall
{=}
-- b.dhall
./a.dhall

Now after executing dhall freeze --all --cache b.dhall the content of b.dhall is

  missing
    sha256:9bb9dcb5bf6f795291686f59383bcd01c8e79b87fc3fb63351d46dea100ac51b
? ./a.dhall

instead of the expected

  ./a.dhall
    sha256:9bb9dcb5bf6f795291686f59383bcd01c8e79b87fc3fb63351d46dea100ac51b
? ./a.dhall
mmhat commented 1 year ago

Whoops, just noted that is the intended behaviour; See https://github.com/dhall-lang/dhall-haskell/issues/2347