From c3e3e9a45270e5bd252eec466add42e3c50230f3 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Tue, 21 Oct 2025 14:26:28 -0700 Subject: [PATCH] fix: copy in dir does not overwrite copy in --- internal/executor/sandbox/convert.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/executor/sandbox/convert.go b/internal/executor/sandbox/convert.go index 158160e..fd92458 100644 --- a/internal/executor/sandbox/convert.go +++ b/internal/executor/sandbox/convert.go @@ -56,7 +56,8 @@ func convertPBCopyIn( if err != nil { return nil } - if !info.IsDir() { + _, exists := copyIn[relPath] + if !info.IsDir() && !exists { copyIn[relPath] = stage.CmdFile{Src: &absPath} } return nil