Skip to content
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

Basics: clean up DiagnosticsEngine in Observability #6333

Merged
merged 1 commit into from Mar 27, 2023

Conversation

MaxDesiatov
Copy link
Member

@MaxDesiatov MaxDesiatov commented Mar 26, 2023

Motivation:

Since uses of DiagnosticsEngine are deprecated in SwiftPM, with apple/swift-driver#1317 we can remove any traces of it from Basics/Observability.swift to clean that up.

Modifications:

Removed unused deprecated function that returned an instance of DiagnosticsEngine. Also broke up import TSCBasic into separate type imports to make clear what dependencies on TSC are there remaining.

Result:

TSCBasic.Diagnostic still remains, but I think long-term we can move that to Swift Driver codebase to reduce dependencies on TSC.

Since uses of `DiagnosticsEngine` are deprecated in SwiftPM, with apple/swift-driver#1317 we can remove any traces of it from `Basics/Observability.swift` to clean that up.
@MaxDesiatov

This comment was marked as duplicate.

1 similar comment
@MaxDesiatov
Copy link
Member Author

apple/swift-driver#1317

@swift-ci smoke test

@MaxDesiatov
Copy link
Member Author

@swift-ci test

@MaxDesiatov
Copy link
Member Author

@swift-ci smoke test

@tomerd
Copy link
Member

tomerd commented Mar 27, 2023

our end goal is to deprecate the entire TSCBasic.Diagnostic(*) feature-set, and while this does not get us there this seems like a good step forward 👍

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) March 27, 2023 16:47
@MaxDesiatov MaxDesiatov merged commit 452b851 into main Mar 27, 2023
4 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/cleanup-diagnostics-engine branch March 28, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants