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) }