pkg/environment: Migrate fs functions to fsx

This commit is contained in:
Tom Wiesing 2023-03-02 11:38:30 +01:00
parent 45540ab253
commit 5a43ecfaeb
No known key found for this signature in database
21 changed files with 155 additions and 199 deletions

View file

@ -9,6 +9,7 @@ import (
"strings"
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)
@ -222,7 +223,7 @@ func InstallTemplate(env environment.Environment, dst string, context map[string
}
// open the destination file
file, err := env.Create(dst, srcInfo.Mode())
file, err := fsx.Create(dst, srcInfo.Mode())
if err != nil {
return err
}