Bump golangci-lint to 1.47.2 and fix issues

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2022-07-26 17:51:59 -04:00
parent c51e1ac6e8
commit f09375367d
7 changed files with 15 additions and 10 deletions

View File

@@ -209,7 +209,7 @@ func (g *generator) Render(tpl string) (string, error) {
})
tt.CustomFunc(gotemplate.FuncMap{
"include": func(s string) string {
content, err := os.ReadFile(filepath.Join(g.path, s))
content, err := os.ReadFile(filepath.Join(g.path, filepath.Clean(s)))
if err != nil {
panic(err)
}