From 152b324d2d871c3e94e3f54c6c3108255b6f0291 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Mon, 5 Feb 2024 02:52:45 -0500 Subject: [PATCH] Use swift-format release/5.9 for Swift compiler 5.8+ --- Package.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 4ac6156..f730174 100644 --- a/Package.swift +++ b/Package.swift @@ -71,7 +71,11 @@ let package = Package( ) // https://github.com/apple/swift-format#matching-swift-format-to-your-swift-version-swift-57-and-earlier -#if compiler(>=5.7) +#if compiler(>=5.8) + package.dependencies += [ + .package(url: "https://github.com/apple/swift-format", .branch("release/5.9")) + ] +#elseif compiler(>=5.7) package.dependencies += [ .package(url: "https://github.com/apple/swift-format", .branch("release/5.7")) ]