-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[vcpkg] Merge the vcpkg metadata uploader into the vcpkg binary #13421
[vcpkg] Merge the vcpkg metadata uploader into the vcpkg binary #13421
Conversation
…hat we need sign only one binary.
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 prefer to see the ifdef solution rather than the REMOVE_ITEM
solution, because I think it's cleaner.
@@ -469,6 +469,8 @@ namespace vcpkg | |||
STARTUPINFOW startup_info; | |||
memset(&startup_info, 0, sizeof(STARTUPINFOW)); | |||
startup_info.cb = sizeof(STARTUPINFOW); | |||
startup_info.dwFlags = STARTF_USESHOWWINDOW; | |||
startup_info.wShowWindow = SW_HIDE; |
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.
Do we always want these flags?
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 think we do but the bits could be renamed to be clearer, will fix.
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.
Does my rename resolve your concern?
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.
Very much, thanks!
Commands::Version::VersionCommand version{}; | ||
} | ||
template<class CommandListT, size_t ExpectedCount> | ||
void check_all_commands(const CommandListT& actual_commands, const char* const (&expected_commands)[ExpectedCount]) |
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.
Suggestion: take std::initializer_list<StringLiteral>
as the second argument.
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 don't think that's an improvement: initializer_list
exists to be the thing that controls constructor overload resolution; using it for any other purpose just encourages use after free bugs when people treat it like a container instead of a pointer to a temporary array.
@@ -469,6 +469,8 @@ namespace vcpkg | |||
STARTUPINFOW startup_info; | |||
memset(&startup_info, 0, sizeof(STARTUPINFOW)); | |||
startup_info.cb = sizeof(STARTUPINFOW); | |||
startup_info.dwFlags = STARTF_USESHOWWINDOW; | |||
startup_info.wShowWindow = SW_HIDE; |
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.
Very much, thanks!
…, so that we need sign only one binary.