Skip to content

[5.8] Add package metadata to a few more ObservabilityScopes in workspace-wide package operations #5986

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

Conversation

abertelrud
Copy link
Contributor

SwiftPM 5.8 nomination of #5984.

rdar://103561534
(cherry picked from commit 723a592)

…ide and package graph loading operations (swiftlang#5984)

Clients of libSwiftPM that present diagnostics use the package metadata that can optionally be attached to an emitted Diagnostic to associate it with the package in the user interface.  This change addresses a few more cases in which no package metadata was associated.  Where possible, the metadata is associated with the ObservabilityScope at the highest place in the call stack so that any diagnostic emitted below it gets the package metadata.

rdar://103561534
(cherry picked from commit 723a592)
@abertelrud abertelrud added the swift 5.8 This PR targets the 5.8 branch label Dec 21, 2022
@abertelrud abertelrud self-assigned this Dec 21, 2022
@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud enabled auto-merge (squash) December 21, 2022 19:13
@abertelrud abertelrud merged commit 800f742 into swiftlang:release/5.8 Dec 21, 2022
@abertelrud abertelrud deleted the eng/5.8-add-more-package-scope branch December 21, 2022 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 5.8 This PR targets the 5.8 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants