From: Bjørn Erik Pedersen Date: Fri, 17 Feb 2017 17:22:07 +0000 (+0100) Subject: hugolib: Fix Windows build failure X-Git-Tag: v0.19~61 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9421690281b061f6e8256a818693df0f18fed1c1;p=brevno-suite%2Fhugo hugolib: Fix Windows build failure --- diff --git a/hugolib/path_separators_windows_test.go b/hugolib/path_separators_windows_test.go index d28589a4..f9dca7f0 100644 --- a/hugolib/path_separators_windows_test.go +++ b/hugolib/path_separators_windows_test.go @@ -16,7 +16,7 @@ package hugolib import ( "testing" - "github.com/spf13/hugo/tpl" + "github.com/spf13/hugo/tpl/tplimpl" ) const ( @@ -27,7 +27,7 @@ const ( func TestTemplatePathSeparator(t *testing.T) { t.Parallel() tmpl := new(tpl.GoHTMLTemplate) - if name := tmpl.GenerateTemplateNameFrom(win_base, win_path); name != "sub1/index.html" { + if name := tplimpl.GenerateTemplateNameFrom(win_base, win_path); name != "sub1/index.html" { t.Fatalf("Template name incorrect. got %s but expected %s", name, "sub1/index.html") } }