From 820b79d91dd4d06391a8bfae83627e0998ef07aa Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Wed, 28 Aug 2019 13:03:57 -0400 Subject: [PATCH] lang/funcs: Clarification update to MakeFileSetFunc comment for filepath.ToSlash usage --- lang/funcs/filesystem.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/funcs/filesystem.go b/lang/funcs/filesystem.go index 5a8341a7e..48185fa5f 100644 --- a/lang/funcs/filesystem.go +++ b/lang/funcs/filesystem.go @@ -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))