From 4b52e03cae5de42d538326f1be71501c49957121 Mon Sep 17 00:00:00 2001 From: sauerbraten Date: Tue, 14 Jul 2020 16:07:49 +0200 Subject: [PATCH] fix absolute path detection on Windows --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index c77ab1c..c015ccf 100644 --- a/template.go +++ b/template.go @@ -177,7 +177,7 @@ func (s *Set) getTemplate(path string) (t *Template, err error) { } func (s *Set) getSiblingTemplate(path, siblingPath string) (t *Template, err error) { - if !filepath.IsAbs(path) { + if !filepath.IsAbs(filepath.Clean(path)) { siblingDir := filepath.Dir(siblingPath) path = filepath.Join(siblingDir, path) }