From 0a7dc300f2d378a01436c33d9e52e0b0b22037c7 Mon Sep 17 00:00:00 2001 From: Chris Araman Date: Sun, 9 May 2021 13:37:36 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Match=20swift-format=20to=20comp?= =?UTF-8?q?iler,=20not=20language=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Package.resolved | 4 ++-- Package.swift | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Package.resolved b/Package.resolved index a4a61a8..916c9e3 100644 --- a/Package.resolved +++ b/Package.resolved @@ -68,9 +68,9 @@ "package": "swift-format", "repositoryURL": "https://github.com/apple/swift-format", "state": { - "branch": null, + "branch": "swift-5.4-branch", "revision": "9c15831b798d767c9af0927a931de5d557004936", - "version": "0.50400.0" + "version": null } }, { diff --git a/Package.swift b/Package.swift index 62caf46..4fe34ee 100644 --- a/Package.swift +++ b/Package.swift @@ -70,12 +70,12 @@ let package = Package( swiftLanguageVersions: [.v5] ) -#if swift(>=5.4) +#if compiler(>=5.4) package.dependencies += [ - .package(url: "https://github.com/apple/swift-format", from: "0.50400.0") + .package(url: "https://github.com/apple/swift-format", .branch("swift-5.4-branch")) ] -#elseif swift(>=5.3) +#elseif compiler(>=5.3) package.dependencies += [ - .package(url: "https://github.com/apple/swift-format", from: "0.50300.0") + .package(url: "https://github.com/apple/swift-format", .branch("swift-5.3-branch")) ] #endif