mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fix ReadAll to run on Windows.
filepath.Clean converts filenames to filenames with native path separators. Use ToSlash to normalize. Signed-off-by: Anusha Ragunathan <anusha@docker.com>
This commit is contained in:
@@ -25,6 +25,7 @@ func ReadAll(reader io.ReadCloser) ([]string, error) {
|
||||
continue
|
||||
}
|
||||
pattern = filepath.Clean(pattern)
|
||||
pattern = filepath.ToSlash(pattern)
|
||||
excludes = append(excludes, pattern)
|
||||
}
|
||||
if err := scanner.Err(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user