From e85b77e424942cd09a883838b509569d2961c93d Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Thu, 26 Sep 2024 03:36:54 -0700 Subject: [PATCH] fix windows tests --- internal/super/generator/generator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/super/generator/generator.go b/internal/super/generator/generator.go index eb04270ea..d31ea5c34 100644 --- a/internal/super/generator/generator.go +++ b/internal/super/generator/generator.go @@ -22,6 +22,7 @@ import ( "bytes" "embed" "fmt" + "path" "path/filepath" "text/template" @@ -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) }