From e6fc1004ad7950692588ff3de916d5efc33c29d8 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 18 Feb 2014 08:55:44 -0500 Subject: [PATCH] Bug fix --- cmd/get.go | 3 +++ doc/utils.go | 13 +++++++------ gopm.go | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/cmd/get.go b/cmd/get.go index b50bbcab5..7742d2d2d 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -191,6 +191,9 @@ func copyToGopath(srcPath, destPath string) { // if the commit is empty string, then it downloads all dependencies, // otherwise, it only downloada package with specific commit only. func downloadPackages(ctx *cli.Context, nodes []*doc.Node) { + for _, node := range nodes { + fmt.Println(node) + } // Check all packages, they may be raw packages path. for _, n := range nodes { // Check if local reference diff --git a/doc/utils.go b/doc/utils.go index 7cc054e83..dab7e4b57 100644 --- a/doc/utils.go +++ b/doc/utils.go @@ -59,12 +59,13 @@ func GetImports(absPath, importPath string, example bool) []string { fis := GetDirsInfo(absPath) absPath += "/" - dirs := make([]string, 0) - for _, fi := range fis { - if fi.IsDir() && !strings.Contains(fi.Name(), VENDOR) { - dirs = append(dirs, absPath+fi.Name()) - } - } + // Load too much, skip for now. + // dirs := make([]string, 0) + // for _, fi := range fis { + // if fi.IsDir() && !strings.Contains(fi.Name(), VENDOR) { + // dirs = append(dirs, absPath+fi.Name()) + // } + // } imports := make([]string, 0, len(pkg.Imports)) for _, p := range pkg.Imports { diff --git a/gopm.go b/gopm.go index bb45dc884..8d678d733 100644 --- a/gopm.go +++ b/gopm.go @@ -29,7 +29,7 @@ import ( // Test that go1.1 tag above is included in builds. main.go refers to this definition. const go11tag = true -const APP_VER = "0.6.2.0125" +const APP_VER = "0.6.2.0218" // //cmd.CmdSearch, // cmdClean,