-
Notifications
You must be signed in to change notification settings - Fork 697
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
[WIP] Add a --solver-log-format internal-json
option that make cabal-install
solver config log output machine-readable
#9465
base: master
Are you sure you want to change the base?
Conversation
Have you already developed the tool to consume this output? I don't see there is any hurry to merge this patch before you've also tried to implement the consumer of this tool -- that way you can more easily iterate on the json message format whilst developing the tool to visualise the output (in case more or different information is needed) |
Currently missing documentation update and changelog. |
cabal-install-solver/src/Distribution/Solver/Modular/Message.hs
Outdated
Show resolved
Hide resolved
So far the patch doesn't implement any of the JSON logic. It seems that the refactoring to use |
A related (overlapping?) PR is #9159 |
Thanks, @mpickering, for your feedbacks, as mentioned by @andreabedini, this PR is rebased on top of #9159 that should be reviewed first (and is the so called |
2346b24
to
429f7de
Compare
429f7de
to
f8a74e5
Compare
This allows the cabal-install solver logs to be mechanized, e.g., similar to the tree view provided by nix-output-monitor for Nix.
68a4d80
to
ce56029
Compare
This PR modifies the
cabal-install
CLI behavior by adding a new alternative JSON output that allows the cabal-install solver logs to be mechanized, e.g., similar to the tree view provided bynix-output-monitor
for Nix (nix-build --log-format internal-json
). It's a follow-up of #9159.Checklist:
Bonus points for added automated tests!