Skip to content

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

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

Closed
adept opened this issue Jun 3, 2025 · 3 comments
Closed

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

adept opened this issue Jun 3, 2025 · 3 comments
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. affects4-many Affects potentially a significant number of users. annoyance4-major Major usability/doc bug, or any regression or crash. packaging Dependencies, version constraints, packaging.. regression A backwards step, indicating a weakness in our QA. We don't like these. web The hledger-web tool.

Comments

@adept
Copy link
Collaborator

adept commented Jun 3, 2025

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")
@simonmichael
Copy link
Owner

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

@simonmichael simonmichael added A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. annoyance4-major Major usability/doc bug, or any regression or crash. affects4-many Affects potentially a significant number of users. web The hledger-web tool. regression A backwards step, indicating a weakness in our QA. We don't like these. labels Jun 3, 2025
@simonmichael simonmichael pinned this issue Jun 3, 2025
@simonmichael
Copy link
Owner

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

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

@simonmichael simonmichael added the packaging Dependencies, version constraints, packaging.. label Jun 3, 2025
@simonmichael simonmichael 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 Jun 3, 2025
@simonmichael simonmichael 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 Jun 4, 2025
@simonmichael
Copy link
Owner

Fixed by 1.43.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. affects4-many Affects potentially a significant number of users. annoyance4-major Major usability/doc bug, or any regression or crash. packaging Dependencies, version constraints, packaging.. regression A backwards step, indicating a weakness in our QA. We don't like these. web The hledger-web tool.
Projects
None yet
Development

No branches or pull requests

2 participants