Skip to content

Commit 844a6b3

Browse files
committed
Restore force resolved versions and local dependency for swift-build
1 parent fd8ecbf commit 844a6b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Package.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,9 @@ if ProcessInfo.processInfo.environment["SWIFTPM_SWBUILD_FRAMEWORK"] == nil {
10291029
.product(name: "SWBBuildService", package: "swift-build"),
10301030
]
10311031

1032-
//if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
1032+
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
10331033
package.dependencies += [.package(url: "https://github.com/swiftlang/swift-build.git", branch: relatedDependenciesBranch)]
1034-
//} else {
1035-
// package.dependencies += [.package(path: "../swift-build")]
1036-
//}
1034+
} else {
1035+
package.dependencies += [.package(path: "../swift-build")]
1036+
}
10371037
}

Utilities/bootstrap

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def build_swiftpm_with_swiftpm(args, integrated_swift_driver):
689689
swiftpm_args.append("--disable-sandbox")
690690

691691
# Enforce resolved versions to avoid stray dependencies that aren't local.
692-
# swiftpm_args.append("--force-resolved-versions")
692+
swiftpm_args.append("--force-resolved-versions")
693693

694694
# Any leftover resolved file from a run without `SWIFTCI_USE_LOCAL_DEPS` needs to be deleted.
695695
if os.path.exists("Package.resolved"):

0 commit comments

Comments
 (0)