-
Notifications
You must be signed in to change notification settings - Fork 288
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
Enable multi-package depend-info
, track triplets
#1370
Conversation
Enables feature control for dependencies.
if (strategy.show_depth) | ||
{ | ||
msg::write_unlocalized_text(Color::error, "(0)"); // legacy | ||
} |
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.
Entirely pointless, but kept for compatibility: output depth at top level tree (actually digraph now) nodes.
(Suggesting removal.)
|
||
std::unordered_set<std::string> features{install_action.feature_list.begin(), | ||
install_action.feature_list.end()}; | ||
features.erase(FeatureNameCore.to_string()); | ||
|
||
auto& port_name = install_action.spec.name(); | ||
out.push_back({decorated_name(install_action.spec), 0, std::move(features), std::move(dependencies)}); |
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.
Using emplace_back here would allow us to get rid of the calls to back below.
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.
It is good enough.
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.
This approval is subject to the documentation being updated to reflect the interface change: https://learn.microsoft.com/vcpkg/commands/depend-info done
https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/commands/depend-info.md
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.
... and an e2e test added using the new feature
I thought there was already an e2e test for this, sorry.
Thanks for the awesome new feature! |
Enables feature control for dependencies, as in
Fixes microsoft/vcpkg#36604.
For this to work reasonably, it is necessary to make
depend-info
triplet-aware, so this is included in this PR in the following way.:host
(instead of using the actual host triplet), to limit variation in output and to simplify recognizing host packages.Examples:
For valid
dot
format output, this PR depends on #1369.