Skip to content

Commit

Permalink
Merge pull request #9 from hashicorp/b-windows-tfignore
Browse files Browse the repository at this point in the history
Make default paths respect os.PathSeparator
  • Loading branch information
Pam Selle committed Nov 15, 2019
2 parents 1aa409a + d9ee9eb commit 6f44f1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraformignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down

0 comments on commit 6f44f1c

Please sign in to comment.