Skip to content

Commit 6ae9a05

Browse files
Add support for SWIFTCI_USE_LOCAL_DEPS convention (#311)
To use this package in utils/build-script pipeline
1 parent 46b4464 commit 6ae9a05

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Package.swift

+11-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ let package = Package(
1313
products: [
1414
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
1515
],
16-
dependencies: [
17-
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
18-
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
19-
],
2016
targets: [
2117
.target(
2218
name: "AsyncAlgorithms",
@@ -52,3 +48,14 @@ let package = Package(
5248
),
5349
]
5450
)
51+
52+
if Context.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
53+
package.dependencies += [
54+
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
55+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
56+
]
57+
} else {
58+
package.dependencies += [
59+
.package(path: "../swift-collections"),
60+
]
61+
}

0 commit comments

Comments
 (0)