Skip to content

[5.5] add delegate to track events from the dependency resolver #3425

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

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Apr 22, 2021

bring #3420 into 5.5

…3420)

motivation:
* significant part of pacakge resolution is spent in the dependency resolver which does not emit events we can use to tell the user what is happening
* a follow up PR would use these new events to emit inforamtion when package depedencies are resolved, e.g when running swift package update

chnages:
* define DependencyResolverDelegate
* replace logging in PubgrubDependencyResolver with calling the relevant delegate methods
* add TracingDependencyResolverDelegate which back-fills the existing logging behavior in PubgrubDependencyResolver
* adjust call-sites
@tomerd tomerd added 5.5 ready Author believes the PR is ready to be merged & any feedback has been addressed labels Apr 22, 2021
@tomerd
Copy link
Contributor Author

tomerd commented Apr 22, 2021

@swift-ci please test

@tomerd tomerd merged commit 4953d32 into swiftlang:release/5.5 Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants