From eaef1a251ab5faad3dd88072e8959e65437c493d Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Mon, 21 Aug 2023 16:54:25 -0400 Subject: [PATCH] Only sync directories on non-Windows OSes Maybe this is causing the test failures. --- snapshot/store.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snapshot/store.go b/snapshot/store.go index d24f5dd5..1fd84b6a 100644 --- a/snapshot/store.go +++ b/snapshot/store.go @@ -8,6 +8,7 @@ import ( "log" "os" "path/filepath" + "runtime" "sort" "strconv" sync "sync" @@ -634,7 +635,12 @@ func removeDirSync(dir string) error { if err := os.RemoveAll(dir); err != nil { return err } - return syncDir(filepath.Dir(dir)) + if runtime.GOOS != "windows" { + if err := syncDir(filepath.Dir(dir)); err != nil { + return err + } + } + return nil } func syncDir(dir string) error {