🧹 Match swift-format to compiler, not language version

This commit is contained in:
Chris Araman 2021-05-09 13:37:36 -07:00
parent 9904707152
commit 0a7dc300f2
No known key found for this signature in database
GPG key ID: BB4499D9E11B61E0
2 changed files with 6 additions and 6 deletions

View file

@ -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
}
},
{

View file

@ -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