Skip to content

Commit 63b0c15

Browse files
committed
Update minimum Swift version to 5.10, and add Sendable conformance for effortless Swift 6 usage
1 parent 00144de commit 63b0c15

3 files changed

Lines changed: 4 additions & 19 deletions

File tree

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.2
1+
// swift-tools-version:5.10
22
import PackageDescription
33

44
let package = Package(
@@ -11,6 +11,6 @@ let package = Package(
1111
],
1212
targets: [
1313
.target(name: "PathKit", dependencies: [], path: "Sources"),
14-
.testTarget(name: "PathKitTests", dependencies: ["PathKit", "Spectre"], path:"Tests/PathKitTests")
14+
.testTarget(name: "PathKitTests", dependencies: ["PathKit", "Spectre"], path:"Tests/PathKitTests", exclude: ["Fixtures"])
1515
]
1616
)

PathKit.podspec

Lines changed: 0 additions & 15 deletions
This file was deleted.

Sources/PathKit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414

1515

1616
/// Represents a filesystem path.
17-
public struct Path {
17+
public struct Path: Sendable {
1818
/// The character used by the OS to separate two path elements
1919
public static let separator = "/"
2020

@@ -194,7 +194,7 @@ extension Path {
194194
}
195195
}
196196

197-
internal protocol FileSystemInfo {
197+
internal protocol FileSystemInfo: Sendable {
198198
func isFSCaseSensitiveAt(path: Path) -> Bool
199199
}
200200

0 commit comments

Comments
 (0)