Skip to content

Commit 7f0110d

Browse files
authored
Update swift-syntax package dependency to 603 (#1286)
This updates our package dependency on swift-syntax to `603.0.0-latest` (replacing `602-0.0-latest`). I also took the opportunity to document the workaround we use to ensure we're always using the latest "prerelease" tag. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent fc6556a commit 7f0110d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Package.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,15 @@ let package = Package(
109109
}(),
110110

111111
dependencies: [
112-
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "602.0.0-latest"),
112+
// swift-syntax periodically publishes a new tag with a suffix of the format
113+
// "-prerelease-YYYY-MM-DD". We always want to use the most recent tag
114+
// associated with a particular Swift version, without needing to hardcode
115+
// an exact tag and manually keep it up-to-date. Specifying the suffix
116+
// "-latest" on this dependency is a workaround which causes Swift package
117+
// manager to use the lexicographically highest-sorted tag with the
118+
// specified semantic version, meaning the most recent "prerelease" tag will
119+
// always be used.
120+
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "603.0.0-latest"),
113121
],
114122

115123
targets: [

Sources/TestingMacros/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if(SwiftTesting_BuildMacrosAsExecutables)
3131
set(FETCHCONTENT_BASE_DIR ${CMAKE_BINARY_DIR}/_d)
3232
FetchContent_Declare(SwiftSyntax
3333
GIT_REPOSITORY https://github.com/swiftlang/swift-syntax
34-
GIT_TAG 340f8400262d494c7c659cd838223990195d7fed) # 602.0.0-prerelease-2025-04-10
34+
GIT_TAG 07bf225e198119c23b2b9a0a3432bdb534498873) # 603.0.0-prerelease-2025-08-11
3535
FetchContent_MakeAvailable(SwiftSyntax)
3636
endif()
3737

0 commit comments

Comments
 (0)