mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Merge pull request #20009 from anusha-ragunathan/to-slash
Fix ReadAll to run on Windows. Upstream-commit: 675fe313ee89bba42965edbed2b10b62d432b8e0 Component: engine
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