From b03a90df50c65f8b8d4ccabb6708911dfff31f15 Mon Sep 17 00:00:00 2001 From: shubhamrasal Date: Tue, 3 Jan 2023 12:17:56 +0530 Subject: [PATCH] fix template path bug, pass the filepath in executeroptions --- v2/pkg/templates/compile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v2/pkg/templates/compile.go b/v2/pkg/templates/compile.go index dfe58b26..a44cd5c4 100644 --- a/v2/pkg/templates/compile.go +++ b/v2/pkg/templates/compile.go @@ -52,6 +52,7 @@ func Parse(filePath string, preprocessor Preprocessor, options protocols.Execute } } defer reader.Close() + options.TemplatePath = filePath template, err := ParseTemplateFromReader(reader, preprocessor, options) if err != nil { return nil, err