lang/funcs: Clarification update to MakeFileSetFunc comment for filepath.ToSlash usage

This commit is contained in:
Brian Flad 2019-08-28 13:03:57 -04:00
parent af7f6ef441
commit 820b79d91d
No known key found for this signature in database
GPG Key ID: EC6252B42B012823
1 changed files with 2 additions and 2 deletions

View File

@ -261,8 +261,8 @@ func MakeFileSetFunc(baseDir string) function.Function {
// Remove the path and file separator from matches.
match = strings.TrimPrefix(match, path+string(filepath.Separator))
// Return matches with the Terraform canonical pattern
// of forward slashes for cross-system compatibility.
// Replace any remaining file separators with forward slash (/)
// separators for cross-system compatibility.
match = filepath.ToSlash(match)
matchVals = append(matchVals, cty.StringVal(match))