Skip to content

Commit 99bc7bb

Browse files
committed
Bump to Swift 6.0
5.9 has issues with swift-markdown's use of versioned `Package.swift` after the added use of unsafe flags (which are 6.2 only). 6.0 is over a year old now.
1 parent 2c59487 commit 99bc7bb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
2121
with:
2222
enable_cross_pr_testing: true
23-
# "5.9" is excluded because of https://github.com/swiftlang/swift-format/issues/1094.
23+
linux_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}, {\"swift_version\": \"5.10\"}]"
2424
windows_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}]"
2525
soundness:
2626
name: Soundness

Package.swift

Lines changed: 3 additions & 2 deletions
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
//
44
// This source file is part of the Swift.org open source project
@@ -146,7 +146,8 @@ let package = Package(
146146
],
147147
products: products,
148148
dependencies: dependencies,
149-
targets: targets
149+
targets: targets,
150+
swiftLanguageModes: [.v5]
150151
)
151152

152153
func swiftSyntaxDependencies(_ names: [String]) -> [Target.Dependency] {

0 commit comments

Comments
 (0)