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

PostBuildChecks: Append output to stdout-<triplet>.log #934

Conversation

autoantwort
Copy link
Contributor

include/vcpkg/base/files.h Outdated Show resolved Hide resolved
include/vcpkg/base/files.h Outdated Show resolved Hide resolved
@@ -412,6 +412,32 @@ namespace vcpkg
this->print(c, msg::format(m, args...).append_raw('\n'));
}

void println_warning(const LocalizedString& s);
Copy link
Member

Choose a reason for hiding this comment

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

I'm weakly against this: output redirection and formatting the error prefix on are separate concerns and I don't think sink.println(msg::format_error(msgFoo)) is that onerous. But I am on record as not being a fan of any "format wrappers" so we should get other maintainers' thoughts.

src/vcpkg/base/messages.cpp Show resolved Hide resolved
src/vcpkg/base/messages.cpp Outdated Show resolved Hide resolved
src/vcpkg/base/messages.cpp Outdated Show resolved Hide resolved
src/vcpkg/build.cpp Outdated Show resolved Hide resolved
src/vcpkg/build.cpp Outdated Show resolved Hide resolved
src/vcpkg/build.cpp Outdated Show resolved Hide resolved
src/vcpkg/build.cpp Outdated Show resolved Hide resolved
autoantwort and others added 2 commits February 28, 2023 08:56
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
Co-authored-by: Billy O'Neal <bion@microsoft.com>
@autoantwort
Copy link
Contributor Author

I have now moved the FileSink into the new message_sinks.h header. I have created a new header because messages.h should not include files.h because messages.h is included everywhere but FileSink is nearly needed nowhere. Now it is only necessary to include base/fwd/message_sinks.h to get stdout_sink etc.

Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

Thanks!

@BillyONeal
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BillyONeal BillyONeal merged commit f4daf73 into microsoft:main Mar 10, 2023
@BillyONeal
Copy link
Member

Thanks!

@autoantwort autoantwort deleted the feature/log-postbuildchecks-to-stdout-<triplet>.log branch March 10, 2023 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants