Skip to content

Commit d9a4b8c

Browse files
authored
Use implementation only import of Foundation in PackagePlugin, as has recently been done for manifests, and remove an extraneous leftover import (#3408)
1 parent ce50cb0 commit d9a4b8c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/PackagePlugin/ImplementationDetails.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
@_implementationOnly import Foundation
1212

1313
// The way in which SwiftPM communicates with the package plugin is an im-
1414
// plementation detail, but the way it currently works is that the plugin

Sources/PackagePlugin/PublicAPI/Path.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
12-
1311
/// A simple representation of a path in the file system.
1412
public struct Path {
1513
private let _string: String

0 commit comments

Comments
 (0)