Skip to content

1.43: hledger-web build failure when not in source directory #2397

Description

@adept

Compilation fails with:

hledger-web                  > /tmp/stack-597eddd583fb00d8/hledger-web-1.43/Hledger/Web/Handler/MiscR.hs:115:15: error: [GHC-87897]
hledger-web                  >     • Exception when trying to run compile-time code:
hledger-web                  >         config/openapi.yaml: withBinaryFile: does not exist (No such file or directory)
hledger-web                  >       Code: (embedFile "config/openapi.yaml")
hledger-web                  >     • In the untyped splice: $(embedFile "config/openapi.yaml")
hledger-web                  >     |
hledger-web                  > 115 | openApiYaml = $(embedFile "config/openapi.yaml")

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance4-majorMajor usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..packagingDependencies, version constraints, packaging..regressionA backwards step, indicating a weakness in our QA. We don't like these.webThe hledger-web tool.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions