Skip to content

Commit 10a7724

Browse files
committed
Let the NuGet hosted e2e run without .socket/
v5 hosted mode writes no `.socket/` directory (the lock pins are the whole hosted state), so the hosted leg's fresh_checkout panicked with NotFound copying a tree that no longer exists. Copy it only when the run left one; the vendored leg still carries its ledger through. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AfGnDQMy2FvpExneXmR1qp
1 parent c699754 commit 10a7724

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎crates/socket-patch-cli/tests/e2e_nuget_dotnet_build.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ fn fresh_checkout(from: &Path, to: &Path) {
306306
for f in ["app.csproj", "nuget.config", "packages.lock.json"] {
307307
std::fs::copy(from.join(f), to.join(f)).unwrap_or_else(|e| panic!("copy {f}: {e}"));
308308
}
309-
copy_tree(&from.join(".socket"), &to.join(".socket"));
309+
// v5 hosted mode writes no `.socket/`: the lock pins are its whole state.
310+
if from.join(".socket").is_dir() {
311+
copy_tree(&from.join(".socket"), &to.join(".socket"));
312+
}
310313
strip_manifest(to);
311314
let blobs = to.join(".socket/blobs");
312315
if blobs.exists() {

0 commit comments

Comments
 (0)