-
Notifications
You must be signed in to change notification settings - Fork 585
Init.Client: don't use both Core_kernel and Core #17284
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
base: compatible
Are you sure you want to change the base?
Conversation
|
!ci-build-me |
|
!ci-bypass-changelog |
| Format.eprintf "A state hash should not be given for %s@." | ||
| ledger_kind ; | ||
| Core_kernel.exit 1 ) | ||
| Core.exit 1 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would simply use Stdlib.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I did on iteration 1, but for consistency I didn't refer to Stdlib, but only Core
| (Yojson.Safe.pretty_print ?std:None) | ||
| (Error_json.error_to_yojson err) ; | ||
| Core_kernel.exit 1 ) ) | ||
| Core.exit 1 ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would simply use Stdlib
src/app/cli/src/init/client.ml
Outdated
| Core.print_endline signature_kind_string ) | ||
| print_endline signature_kind_string ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why CI broke is that this is inside a Command.basic and not a Command.async, so I'm pretty sure the async scheduler is not active here. The existing Core.print_endline just prints to stdout, so it works. This print_endline is the async one and tries to add the write to the async queue, so nothing ends up being printed - I guess just silently does nothing when the async scheduler isn't active?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(The failing test was the one that makes sure that mina advanced print-signature-kind still works).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But anyway it's bad practice to call sync printline in async code. Let me just make that async
|
Rebased this atop compatible: now it's taking forever to load nix on this branch |
161fdad to
7ff5c42
Compare
|
!ci-build-me |

EDIT: didn't expect this to break CI