mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
Bump golangci-lint to 1.47.2 and fix issues
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user