Skip to content

Commit

Permalink
Restore force resolved versions and local dependency for swift-build
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcgee1024 committed Feb 3, 2025
1 parent fd8ecbf commit 844a6b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1029,9 +1029,9 @@ if ProcessInfo.processInfo.environment["SWIFTPM_SWBUILD_FRAMEWORK"] == nil {
.product(name: "SWBBuildService", package: "swift-build"),
]

//if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
package.dependencies += [.package(url: "https://github.com/swiftlang/swift-build.git", branch: relatedDependenciesBranch)]
//} else {
// package.dependencies += [.package(path: "../swift-build")]
//}
} else {
package.dependencies += [.package(path: "../swift-build")]
}
}
2 changes: 1 addition & 1 deletion Utilities/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def build_swiftpm_with_swiftpm(args, integrated_swift_driver):
swiftpm_args.append("--disable-sandbox")

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

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

0 comments on commit 844a6b3

Please sign in to comment.