Browse Source

fixed bug for build on windows

pull/103/head
Lunny Xiao 11 years ago
parent
commit
182c163649
  1. 3
      cmd/build.go

3
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)

Loading…
Cancel
Save