From b7e0b2c1bb7dfc62c268e69288b6e29b74ec4115 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Tue, 15 Oct 2019 17:48:40 -0400 Subject: [PATCH] what i wouldn't do --- parser/parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser/parser.go b/parser/parser.go index 8b7a404..8875214 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -7,6 +7,7 @@ import ( "os" "path/filepath" "sort" + "strings" "github.com/markbates/pkger/here" "github.com/markbates/pkger/pkging/stdos" @@ -97,7 +98,7 @@ func fromPath(pt here.Path) ([]here.Path, error) { root := here.Path{ Pkg: pt.Pkg, - Name: filepath.Dir(pt.Name), + Name: strings.Replace(filepath.Dir(pt.Name), "\\", "/", -1), } paths = append(paths, root) err = pkg.Walk(pt.Name, func(path string, info os.FileInfo, err error) error {