@@ -40,20 +40,31 @@ let featureSettings: [SwiftSetting] = [
40
40
. enableUpcomingFeature( " MemberImportVisibility " )
41
41
]
42
42
43
- var dependencies : [ Package . Dependency ] {
44
- if Context . environment [ " SWIFTCI_USE_LOCAL_DEPS " ] != nil {
43
+ var dependencies : [ Package . Dependency ] = [ ]
44
+
45
+ if let useLocalDepsEnv = Context . environment [ " SWIFTCI_USE_LOCAL_DEPS " ] , !useLocalDepsEnv. isEmpty {
46
+ let root : String
47
+ if useLocalDepsEnv == " 1 " {
48
+ root = " .. "
49
+ } else {
50
+ root = useLocalDepsEnv
51
+ }
52
+ dependencies +=
45
53
[
46
54
. package (
47
55
name: " swift-collections " ,
48
- path: " .. /swift-collections" ) ,
56
+ path: " \( root ) /swift-collections " ) ,
49
57
. package (
50
58
name: " swift-foundation-icu " ,
51
- path: " .. /swift-foundation-icu" ) ,
59
+ path: " \( root ) /swift-foundation-icu " ) ,
52
60
. package (
53
61
name: " swift-syntax " ,
54
- path: " .. /swift-syntax" )
62
+ path: " \( root ) /swift-syntax " )
55
63
]
56
- } else {
64
+ } else {
65
+ // These dependencies should match `update-checkout`
66
+ // See `update-checkout-config.json` for the `main` branch-scheme
67
+ dependencies +=
57
68
[
58
69
. package (
59
70
url: " https://github.com/apple/swift-collections " ,
@@ -65,7 +76,6 @@ var dependencies: [Package.Dependency] {
65
76
url: " https://github.com/swiftlang/swift-syntax " ,
66
77
branch: " main " )
67
78
]
68
- }
69
79
}
70
80
71
81
let wasiLibcCSettings : [ CSetting ] = [
0 commit comments