swift-format: support Swift 5.7.1+ on Linux
Closes #114549. Signed-off-by: Michael Cho <20700669+cho-m@users.noreply.github.com> Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> Signed-off-by: Patrick Linnane <patrick@linnane.io> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
6f733a0ad5
commit
aa107fa8af
|
@ -5,6 +5,7 @@ class SwiftFormat < Formula
|
|||
tag: "0.50700.0",
|
||||
revision: "3dd9b517b9e9846435aa782d769ef5825e7c2d65"
|
||||
license "Apache-2.0"
|
||||
revision 1
|
||||
version_scheme 1
|
||||
head "https://github.com/apple/swift-format.git", branch: "main"
|
||||
|
||||
|
@ -32,7 +33,7 @@ class SwiftFormat < Formula
|
|||
def install
|
||||
# Support current stable Swift.
|
||||
# Remove with Swift 5.7.1.
|
||||
inreplace "Package.swift", '.upToNextMinor(from: "0.50700.0")', '.exact("0.50700.0")'
|
||||
inreplace "Package.swift", '.upToNextMinor(from: "0.50700.0")', '.exact("0.50700.0")' if OS.mac?
|
||||
|
||||
# This can likely be removed with 0.50800.0
|
||||
swift_rpath = if OS.mac?
|
||||
|
|
Loading…
Reference in New Issue