From d9ee9eb3692a2ee1fa367c681a989edd7fe1bfba Mon Sep 17 00:00:00 2001 From: Pam Selle Date: Thu, 14 Nov 2019 16:18:06 -0500 Subject: [PATCH] Make default paths respect os.PathSeparator --- terraformignore.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terraformignore.go b/terraformignore.go index 864dc92..ac74869 100644 --- a/terraformignore.go +++ b/terraformignore.go @@ -196,15 +196,15 @@ func (r *rule) compile() error { var defaultExclusions = []rule{ { - val: "**/.git/**", + val: strings.Join([]string{"**", ".git", "**"}, string(os.PathSeparator)), excluded: false, }, { - val: "**/.terraform/**", + val: strings.Join([]string{"**", ".terraform", "**"}, string(os.PathSeparator)), excluded: false, }, { - val: "**/.terraform/modules/**", + val: strings.Join([]string{"**", ".terraform", "modules", "**"}, string(os.PathSeparator)), excluded: true, }, }