From 6eafc83fe514d0388df69120985a482706823f93 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Dec 2013 18:27:20 +0800 Subject: [PATCH] add update command: need verified --- cmd/update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index 646f5ad79..205ed4acd 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -123,7 +123,7 @@ func runUpdate(ctx *cli.Context) { } defer func() { // Clean files. - os.RemoveAll(path.Join(repoPath, VENDOR)) + os.RemoveAll(path.Join(repoPath, doc.VENDOR)) }() // Check if previous steps were successful. @@ -146,7 +146,7 @@ func runUpdate(ctx *cli.Context) { if runtime.GOOS == "windows" { binName += ".exe" } - binPath := path.Join(VENDOR, "src", pkgPath, binName) + binPath := path.Join(doc.VENDOR, "src", pkgPath, binName) if !com.IsFile(binPath) { log.Error("Update", "Fail to continue command") log.Fatal("", "Previous steps weren't successful or the project does not contain main package")