1
1
// swift-tools-version:5.8
2
2
3
3
import PackageDescription
4
+ import class Foundation. ProcessInfo
4
5
5
6
let package = Package (
6
7
name: " WasmKit " ,
@@ -25,12 +26,6 @@ let package = Package(
25
26
. plugin( name: " WITOverlayPlugin " , targets: [ " WITOverlayPlugin " ] ) ,
26
27
. plugin( name: " WITExtractorPlugin " , targets: [ " WITExtractorPlugin " ] ) ,
27
28
] ,
28
- dependencies: [
29
- . package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.2.2 " ) ,
30
- . package ( url: " https://github.com/apple/swift-system " , . upToNextMinor( from: " 1.1.1 " ) ) ,
31
- . package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.3.0 " ) ,
32
- . package ( url: " https://github.com/apple/swift-format.git " , from: " 508.0.1 " ) ,
33
- ] ,
34
29
targets: [
35
30
. executableTarget(
36
31
name: " CLI " ,
@@ -114,3 +109,17 @@ let package = Package(
114
109
] ,
115
110
swiftLanguageVersions: [ . v5]
116
111
)
112
+
113
+ if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
114
+ package . dependencies += [
115
+ . package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.2.2 " ) ,
116
+ . package ( url: " https://github.com/apple/swift-system " , . upToNextMinor( from: " 1.1.1 " ) ) ,
117
+ . package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.3.0 " ) ,
118
+ . package ( url: " https://github.com/apple/swift-format.git " , from: " 508.0.1 " ) ,
119
+ ]
120
+ } else {
121
+ package . dependencies += [
122
+ . package ( path: " ../swift-argument-parser " ) ,
123
+ . package ( path: " ../swift-system " ) ,
124
+ ]
125
+ }
0 commit comments