From e3f065ad54be58eeef7ac91aef391b2d9891bdd5 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 11 May 2026 22:42:51 +0200 Subject: [PATCH] windows: ignore temporary access denied error on temp file creation --- internal/fs/file_windows.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/fs/file_windows.go b/internal/fs/file_windows.go index 2aa050d2c..f756d4aea 100644 --- a/internal/fs/file_windows.go +++ b/internal/fs/file_windows.go @@ -76,6 +76,10 @@ func TempFile(dir, prefix string) (f *os.File, err error) { if os.IsExist(err) { continue } + // Access denied error can occur if the tmp files conflict with each other. + if isAccessDeniedError(err) { + continue + } return os.NewFile(uintptr(h), path), err }