Skip to content

Commit 7838439

Browse files
authored
Package.swift: fix deprecated dependency initializers (#1366)
Package dependency initializer overload with a `name:` argument was deprecated in recent versions of SwiftPM. Let's replace it with a non-deprecated version to fix the dependency warning.
1 parent 5d07422 commit 7838439

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
@@ -53,7 +53,7 @@ let package = Package(
5353
"SwiftOptions",
5454
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
5555
"CSwiftScan",
56-
.product(name: "Yams", package: "Yams"),
56+
.product(name: "Yams", package: "yams"),
5757
],
5858
exclude: ["CMakeLists.txt"]),
5959

@@ -137,7 +137,7 @@ let package = Package(
137137
if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
138138
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
139139
package.dependencies += [
140-
.package(url: "https://github.com/apple/swift-llbuild.git", .branch("main")),
140+
.package(url: "https://github.com/apple/swift-llbuild.git", branch: "main"),
141141
]
142142
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += [
143143
.product(name: "llbuildSwift", package: "swift-llbuild"),
@@ -156,7 +156,7 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
156156

157157
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
158158
package.dependencies += [
159-
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("main")),
159+
.package(url: "https://github.com/apple/swift-tools-support-core.git", branch: "main"),
160160
.package(url: "https://github.com/jpsim/Yams.git", .upToNextMinor(from: "5.0.0")),
161161
// The 'swift-argument-parser' version declared here must match that
162162
// used by 'swift-package-manager' and 'sourcekit-lsp'. Please coordinate
@@ -166,7 +166,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
166166
} else {
167167
package.dependencies += [
168168
.package(path: "../swift-tools-support-core"),
169-
.package(name: "Yams", path: "../yams"),
169+
.package(path: "../yams"),
170170
.package(path: "../swift-argument-parser"),
171171
]
172172
}

0 commit comments

Comments
 (0)