Skip to content

Commit

Permalink
Don't follow reparse points when cloning the utility VM
Browse files Browse the repository at this point in the history
This works around a Go issue where on Windows filepath.Walk follows
reparse points.
  • Loading branch information
jstarks committed Sep 29, 2016
1 parent cba6acc commit 4adcf2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ func cloneTree(srcPath, destPath string, mutatedFiles map[string]bool) error {
}
}

// Don't recurse on reparse points.
if info.IsDir() && isReparsePoint {
return filepath.SkipDir
}

return nil
})
if err != nil {
Expand Down

0 comments on commit 4adcf2e

Please sign in to comment.