Skip to content

dhall format removes required parentheses in freezed import statement using headers #2273

Closed
@jgeerds

Description

@jgeerds

This issue is related to #441. The parentheses around ./headers.dhall are required to make the code unambiguous. Unfortunately, the format command removes the parenthesis resulting that the expression no longer works

let MyPackage = https://server.test/package.dhall using (./headers.dhall) sha256:03a6e298ff140d430cea8b387fad886ce9f5bee24622c7d1102115cc08ed9cf8
dhall: 
↳ ./test.dhall
  ↳ ./headers.dhall
  sha256:03a6e298ff140d430cea8b387fad886ce9f5bee24622c7d1102115cc08ed9cf8

Error: Import integrity check failed

Expected hash:

↳ 03a6e298ff140d430cea8b387fad886ce9f5bee24622c7d1102115cc08ed9cf8

Actual hash:

↳ f251a7ed8ae08f533a11033e164afc73da09e65997a3f77d2345e34e42ea0f13


2│                                                                                                   ./headers.dhall
3│         sha256:03a6e298ff140d430cea8b387fad886ce9f5bee24622c7d1102115cc08ed9cf8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions