mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05: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:
parent
3329c94e25
commit
691555fc8b
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue