From f19532ca20a2a4c7bf950c30a2b7f95a0bfed732 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 3 Dec 2013 03:09:33 -0500 Subject: [PATCH] Bug fixed --- cmd/build.go | 1 - cmd/get.go | 2 -- doc/conf.go | 2 ++ 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/build.go b/cmd/build.go index 8d3706008..4e557afff 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -35,7 +35,6 @@ gopm build `, } func runBuild(ctx *cli.Context) { - doc.LoadLocalNodes() genNewGoPath(ctx, false) log.Trace("Building...") diff --git a/cmd/get.go b/cmd/get.go index a53d079c8..9ec1e78e6 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -80,8 +80,6 @@ func runGet(ctx *cli.Context) { installRepoPath = doc.HomeDir + "/repos" log.Log("Local repository path: %s", installRepoPath) - doc.LoadLocalNodes() - // Check number of arguments. switch len(ctx.Args()) { case 0: diff --git a/doc/conf.go b/doc/conf.go index fbc6dc783..584d5fc2b 100644 --- a/doc/conf.go +++ b/doc/conf.go @@ -43,6 +43,8 @@ func init() { } HomeDir = strings.Replace(RawHomeDir, "~", hd, -1) + + LoadLocalNodes() } func NewGopmfile(dirPath string) *goconfig.ConfigFile {