From 355e83e07fb329125812c3421ed9daaba705c5dc Mon Sep 17 00:00:00 2001 From: cs8425 Date: Wed, 10 Jun 2026 12:31:35 +0800 Subject: [PATCH] fix os.Root api on windows issue --- pkg/tools/fs/filesystem.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/tools/fs/filesystem.go b/pkg/tools/fs/filesystem.go index 262d88d99..4911b0fa5 100644 --- a/pkg/tools/fs/filesystem.go +++ b/pkg/tools/fs/filesystem.go @@ -1064,6 +1064,9 @@ func (r *sandboxFs) execute(path string, fn func(root *os.Root, relPath string) return err } + // os.Root api on windows only accept forward slashes (/) + relPath = filepath.ToSlash(relPath) + return fn(root, relPath) }