Move Package.resolved aside instead of removing it #2270
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.31) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 115 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.284
Real PR Conversation Timeline
1 comments
"Review active on #2270"
general
weight: 0.35
nkcsgexi
#2257 made
build-script-helper.pyremovePackage.resolvedwhen building with local dependencies, so that SwiftPM doesn't fetch the remote pins in it. Removing it had a few problems: it left a deleted tracked file in the checkout, which makesupdate-checkoutfail; it modified the source tree even for the CMake-basedbuildaction, which never runs SwiftPM; and it failed withPermissionErrorwhen the source tree is not writable, which broke the Android SDK CI job (https://github.com/swiftlang/swift-driver/pull/2257#discussion_r4571441727).This moves
Package.resolvedaside only while SwiftPM runs, i.e. for thetestaction, the non-Darwininstallaction, andbuildwith non-macOS cross-compile hosts, and restores it afterwards, also when SwiftPM fails. If the file cannot be moved, the helper prints a warning and continues; SwiftPM then fetches the pinned remote dependencies as it did before #2257.