-
Notifications
You must be signed in to change notification settings - Fork 1.4k
adds traits to dependency output in show-dependencies --json and --text #9034
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: main
Are you sure you want to change the base?
Conversation
@swift-ci please test |
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 know this is still in draft, but could we please add an automated test to ensure we don't regress?
@bkhouri absolutely - I was keeping it draft until I could see what tests where running and add in something appropriate. Just added now, following the pattern of the other nearby "command tests" |
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 is great! thank you for doing this :)
@swift-ci please test |
8c4ef04
to
3d29dbe
Compare
@swift-ci please test |
@swift-ci please test windows platform |
Adds traits to the output of the show-dependencies command for
--text
and--json
output.Motivation:
Exposes the default traits, if any, that are enabled by the dependencies a package.
Resolves: #9033
Modifications:
Extended the logic in show-dependencies to add in the
enabledTraits
for a resolved package.Result:
The output of show-dependencies includes output akin to
(traits: FirstTrait, SecondTrait)
is the resolved package has traits and includes the traits that it has. If the package doesn't offer traits, no additional/new content is displayed in--text
.The JSON provided from
show-dependencies --json
includes atraits
property, empty if there aren't any traits enabled.