SWIFTCI_USE_LOCAL_DEPS
1 parent 46b4464 commit 6ae9a05Copy full SHA for 6ae9a05
Package.swift
@@ -13,10 +13,6 @@ let package = Package(
13
products:[
14
.library(name:"AsyncAlgorithms", targets:["AsyncAlgorithms"]),
15
],
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
-],
20
targets:[
21
.target(
22
name:"AsyncAlgorithms",
@@ -52,3 +48,14 @@ let package = Package(
52
48
),
53
49
]
54
50
)
51
+
+ifContext.environment["SWIFTCI_USE_LOCAL_DEPS"]==nil{
+package.dependencies +=[
+.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
59
+.package(path:"../swift-collections"),
60
61
+}
0 commit comments