Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Sep 26, 2024
1 parent d741998 commit e85b77e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/super/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"bytes"
"embed"
"fmt"
"path"
"path/filepath"
"text/template"

Expand Down Expand Up @@ -155,7 +156,7 @@ func (g *Generator) generate(item TemplateItem) error {
// processTemplate reads a template file from the embedded filesystem and processes it with the provided data
// If you don't need to provide data, pass nil
func (g *Generator) processTemplate(templatePath string, data map[string]interface{}) (string, error) {
templateData, err := templatesFS.ReadFile(filepath.Join("templates", templatePath))
templateData, err := templatesFS.ReadFile(path.Join("templates", templatePath))
if err != nil {
return "", fmt.Errorf("failed to read template file: %w", err)
}
Expand Down

0 comments on commit e85b77e

Please sign in to comment.