Skip to content

Commit

Permalink
fix: make sure that the filenames are created with slash to recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Nov 15, 2024
1 parent 54c7af2 commit abeb27e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/recipe/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package recipe
import (
"errors"
"maps"
"path/filepath"
"strings"

"github.com/gofrs/uuid"
Expand Down Expand Up @@ -72,7 +73,7 @@ func (re *Recipe) Execute(engine RenderEngine, values VariableValues, id uuid.UU
continue
}

filename = strings.TrimSuffix(filename, re.TemplateExtension)
filename = filepath.ToSlash(strings.TrimSuffix(filename, re.TemplateExtension))

sauce.Files[filename] = NewFile(content)
idx += 1
Expand Down

0 comments on commit abeb27e

Please sign in to comment.