From 0e1e063bd4e7928bdd190e9ed113a3d1fd18f56a Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 9 Dec 2013 16:12:03 -0500 Subject: [PATCH] Added filter for .vendor dir --- cmd/helper_windows.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/helper_windows.go b/cmd/helper_windows.go index cf632582d..3ce70f060 100644 --- a/cmd/helper_windows.go +++ b/cmd/helper_windows.go @@ -36,14 +36,9 @@ func makeLink(srcPath, destPath string) error { } os.RemoveAll(destPath) - err := com.CopyDir(srcPath, destPath, func(filePath string) bool { + return com.CopyDir(srcPath, destPath, func(filePath string) bool { return strings.Contains(filePath, doc.VENDOR) }) - if err == nil { - // .vendor dir should not be copy - os.RemoveAll(filepath.Join(destPath, doc.VENDOR)) - } - return err } func volumnType(dir string) string {