Skip to content

Mostly explicit import tools-support-core APIs #1176

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
Sep 11, 2022

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Sep 9, 2022

Switch to explicitly importing the tools-support-core API surface to identify what we are depending on. This will help ween swift-driver off of swift-tools-support-core in the long run.

@compnerd
Copy link
Member Author

compnerd commented Sep 9, 2022

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Sep 9, 2022

CC: @CodaFi

import SwiftOptions

import class Dispatch.DispatchQueue

import TSCBasic // <<<
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guessing this can be removed now. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afraid not :-(. The import TSCBasic // <<< instances are all importing the module as I couldn't figure out how to import the <<< operator from TSC. If that is possible, I'd be happy to go through and remove the instances.

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thank you.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

Switch to explicitly importing the tools-support-core API surface to
identify what we are depending on.  This will help ween swift-driver off
of swift-tools-support-core in the long run.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 0a08998 into swiftlang:main Sep 11, 2022
@compnerd compnerd deleted the explicit branch September 11, 2022 14:42
artemcm added a commit to artemcm/swift-driver that referenced this pull request Sep 12, 2022
There was a race between swiftlang#1174 and swiftlang#1176 which removed an import.
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.

2 participants