From 182c1636491cb3ca58c8bf37c2b29ea716f6fa18 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 31 Oct 2013 17:29:38 +0800 Subject: [PATCH] fixed bug for build on windows --- cmd/build.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/build.go b/cmd/build.go index e023f0864..d05f3e560 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -154,7 +154,7 @@ func runBuild(cmd *Command, args []string) { paths := strings.Split(name, "/") var isExistP bool for i := 0; i < len(paths)-1; i++ { - pName := filepath.Join(paths[:len(paths)-1-i]...) + pName := strings.Join(paths[:len(paths)-1-i], "/") if _, ok := cachePkgs[pName]; ok { isExistP = true break @@ -166,7 +166,6 @@ func runBuild(cmd *Command, args []string) { newPPath := filepath.Join(newGoPathSrc, pName) com.ColorLog("[TRAC] create dirs %v\n", newPPath) os.MkdirAll(newPPath, os.ModePerm) - com.ColorLog("[INFO] linked %v\n", name) err = makeLink(oldPath, newPath)