Skip to content

Commit d27c488

Browse files
committed
Set Swift tools version to 6.0
This is required because the new Swift Testing framework is included in the Swift 6 toolchain and Xcode 16.
1 parent d6d87e4 commit d27c488

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 6.0
22

33
import PackageDescription
44

Sources/SwiftGit2/CheckoutStrategy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Clibgit2
1010

1111
/// The flags defining how a checkout should be performed.
1212
/// More detail is available in the libgit2 documentation for `git_checkout_strategy_t`.
13-
public struct CheckoutStrategy: OptionSet {
13+
public struct CheckoutStrategy: OptionSet, Sendable {
1414
private let value: UInt
1515

1616
// MARK: - Initialization

Sources/SwiftGit2/Diffs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public struct Diff {
6060
}
6161
}
6262

63-
public struct Status: OptionSet {
63+
public struct Status: OptionSet, Sendable {
6464
// This appears to be necessary due to bug in Swift
6565
// https://bugs.swift.org/browse/SR-3003
6666
public init(rawValue: UInt32) {
@@ -84,7 +84,7 @@ public struct Diff {
8484
public static let conflicted = Status(rawValue: GIT_STATUS_CONFLICTED.rawValue)
8585
}
8686

87-
public struct Flags: OptionSet {
87+
public struct Flags: OptionSet, Sendable {
8888
// This appears to be necessary due to bug in Swift
8989
// https://bugs.swift.org/browse/SR-3003
9090
public init(rawValue: UInt32) {

Sources/SwiftGit2/StatusOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import Clibgit2
66
import Foundation
77

8-
public struct StatusOptions: OptionSet {
8+
public struct StatusOptions: OptionSet, Sendable {
99
public let rawValue: UInt32
1010

1111
public init(rawValue: UInt32) {

0 commit comments

Comments
 (0)