Skip to content
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

Windows: remove double printing on commands and their output #4940

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Dec 1, 2021

A specific behavior is set for non windows devices to handle verbose printing of commands and their output. This makes windows workflow go into the fallback one, and have the double printing.

@rjbou rjbou added this to the 2.2.0~alpha milestone Dec 1, 2021
@rjbou rjbou requested review from AltGr and dra27 December 1, 2021 14:48
@@ -639,8 +639,8 @@ let exit_status p return =
if isset_verbose_f () then
stop_verbose_f ()
else if p.p_verbose then
(verbose_print_cmd p;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already printed on set_verbose_process call.

(verbose_print_cmd p;
List.iter verbose_print_out stdout;
(List.iter verbose_print_out stdout;
if p.p_stdout <> p.p_stderr then
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default stderr is set to stdout.

@rjbou rjbou merged commit df82a83 into ocaml:master Dec 17, 2021
rjbou added a commit to rjbou/opam that referenced this pull request Aug 8, 2022
Windows: remove double printing on commands and their output
@rjbou rjbou modified the milestones: 2.2.0~alpha, 2.1.3 Jul 4, 2023
@rjbou rjbou mentioned this pull request Aug 9, 2022
@dra27 dra27 mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant