mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 07:20:52 +02:00
fix: oci pull directory conflict when download twice (#914)
* fix: oci pull directory conflict when download twice Signed-off-by: yxxhero <aiopsclub@163.com> * add test cases
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"io/fs"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -102,7 +102,7 @@ func TestFsTeadFile(t *testing.T) {
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
yamlPath := path.Join(dir, c.path)
|
||||
yamlPath := filepath.Join(dir, c.path)
|
||||
|
||||
dfs := DefaultFileSystem()
|
||||
tmpfile, err := os.Create(yamlPath)
|
||||
|
||||
Reference in New Issue
Block a user