Skip to content

Commit 1fc50ae

Browse files
authored
Fix package manifest API .branch deprecation (#731)
With Swift 5.7 we should use `branch:` name argument overload instead.
1 parent 781d69f commit 1fc50ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ let package = Package(
249249
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
250250
// Building standalone.
251251
package.dependencies += [
252-
.package(name: "IndexStoreDB", url: "https://github.com/apple/indexstore-db.git", .branch("main")),
253-
.package(name: "SwiftPM", url: "https://github.com/apple/swift-package-manager.git", .branch("main")),
254-
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("main")),
252+
.package(name: "IndexStoreDB", url: "https://github.com/apple/indexstore-db.git", branch: "main"),
253+
.package(name: "SwiftPM", url: "https://github.com/apple/swift-package-manager.git", branch: "main"),
254+
.package(url: "https://github.com/apple/swift-tools-support-core.git", branch: "main"),
255255
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.2.2")),
256-
.package(url: "https://github.com/apple/swift-syntax.git", .branch("main")),
256+
.package(url: "https://github.com/apple/swift-syntax.git", branch: "main"),
257257
]
258258
} else {
259259
package.dependencies += [

0 commit comments

Comments
 (0)