-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Can't run fancyassertions #1453
Comments
DamienCassou
added
the
A-BUG
Something wrong, confusing or sub-standard in the software, docs, or user experience.
label
Jan 11, 2021
This is supposed to be part of CI now, but something is wrong. Thanks for the report! |
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
Using stack's script command meant that the scripts needed to be compatible, and regularly tested, with a hledger release in stackage, rather than the latest hledger source. This created hassles for maintainers, contributors and sometimes for users. To simplify things overall, we now require script users to check out the hledger source tree and run the scripts (or, bin/compile.sh) from there once so they compile themselves. Some notes on alternative setups are included (in one of the scripts, and referenced by the others). This ensures that users and our CI tests are building scripts the same way. Current stack does not allow a stack options line to be used with the "stack ghc" command, unfortunately, so instead we are using env's -S flag, which hopefully has sufficiently wide support by now, and putting all arguments in the shebang line. This method will probably require complete explicit --package options, unlike "stack script", so more testing and tweaking is expected. Probably we're going to end up with some long shebang lines. This isn't pretty but seems like a possible way to keep things manageable.
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
env -S isn't a thing on linux of course. Go back to using standard env, which means using a stack options line, which means not using "ghc". This new setup is probably simpler anyway. I've just had to give up on the goal of having each script's required packages being defined in one place; now (to they extent they are required) they must be defined both in the script header and in compile.sh.
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
simonmichael
added a commit
that referenced
this issue
Jan 12, 2021
They need more work to become CI-ready. Contributors can run them locally with "make functest".
Testing these scripts in CI turns out to be a big rabbit hole, and I have just given up for the moment. However the bin/ docs and |
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
(cherry picked from commit 3ae6cf3)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
Using stack's script command meant that the scripts needed to be compatible, and regularly tested, with a hledger release in stackage, rather than the latest hledger source. This created hassles for maintainers, contributors and sometimes for users. To simplify things overall, we now require script users to check out the hledger source tree and run the scripts (or, bin/compile.sh) from there once so they compile themselves. Some notes on alternative setups are included (in one of the scripts, and referenced by the others). This ensures that users and our CI tests are building scripts the same way. Current stack does not allow a stack options line to be used with the "stack ghc" command, unfortunately, so instead we are using env's -S flag, which hopefully has sufficiently wide support by now, and putting all arguments in the shebang line. This method will probably require complete explicit --package options, unlike "stack script", so more testing and tweaking is expected. Probably we're going to end up with some long shebang lines. This isn't pretty but seems like a possible way to keep things manageable. (cherry picked from commit 2db8733)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
env -S isn't a thing on linux of course. Go back to using standard env, which means using a stack options line, which means not using "ghc". This new setup is probably simpler anyway. I've just had to give up on the goal of having each script's required packages being defined in one place; now (to they extent they are required) they must be defined both in the script header and in compile.sh. (cherry picked from commit 32ccbba)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
(cherry picked from commit 10bf0e5)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
(cherry picked from commit 1023a3c)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
(cherry picked from commit 84bf42a)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
(cherry picked from commit fef0e3a)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
(cherry picked from commit 22ce252)
simonmichael
added a commit
that referenced
this issue
Jan 13, 2021
They need more work to become CI-ready. Contributors can run them locally with "make functest". (cherry picked from commit 93bf6cf)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have just updated hledger repository to latest master (which is b203822) and ran
stack install
. I can't use fancyassertions:The text was updated successfully, but these errors were encountered: