Visitar URL original
1.43: hledger-web build failure when not in source directory · Issue #2397 · hledgerorg/hledger · GitHub
Skip to content

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

Closed

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")

Activity

  1. simonmichael commented on Jun 3, 2025

    @simonmichael
    Member

    Thanks! Does adding - config/openapi.yaml to hledger-web/package.yaml:extra-source-files fix it ?

  2. added
    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.
    annoyance4-majorMajor usability/doc bug, or any regression or crash.
    affects4-manyAffects potentially a significant number of users.
    webThe hledger-web tool.
    regressionA backwards step, indicating a weakness in our QA. We don't like these.
    on Jun 3, 2025
  3. pinned this issue on Jun 3, 2025
  4. simonmichael commented on Jun 3, 2025

    @simonmichael
    Member

    Yes it does. I'll ship a fix ASAP.

    (Claim your https://hledger.org/REGRESSIONS.html#regression-finders-bounty when ready.)

  5. changed the title [-]1.43: failure to install hledger-web via "stack install"[/-] [+]1.43: failure to build hledger-web when not in source directory[/+] on Jun 3, 2025
  6. changed the title [-]1.43: failure to build hledger-web when not in source directory[/-] [+]1.43: hledger-web build failure when not in source directory[/+] on Jun 4, 2025
  7. simonmichael commented on Jun 4, 2025

    @simonmichael
    Member

    Fixed by 1.43.1.

  8. simonmichael commented on Jun 5, 2025

    @simonmichael
    Member

    One last reminder, because I'll forget, to claim the finder's bounty in the next week.

  9. adept commented on Jun 7, 2025

    @adept
    ContributorAuthor

    No, thank you :)

    Put it back into the pot please

  10. simonmichael commented on Jun 7, 2025

    @simonmichael
    Member

    Thank you!

  11. unpinned this issue on Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions