Browse Source

Bug fix

pull/103/head
Unknown 11 years ago
parent
commit
5a213c0834
  1. 3
      cmd/get.go
  2. 5
      doc/github.go

3
cmd/get.go

@ -191,9 +191,6 @@ func copyToGopath(srcPath, destPath string) {
// if the commit is empty string, then it downloads all dependencies, // if the commit is empty string, then it downloads all dependencies,
// otherwise, it only downloada package with specific commit only. // otherwise, it only downloada package with specific commit only.
func downloadPackages(ctx *cli.Context, nodes []*doc.Node) { func downloadPackages(ctx *cli.Context, nodes []*doc.Node) {
for _, node := range nodes {
fmt.Println(node)
}
// Check all packages, they may be raw packages path. // Check all packages, they may be raw packages path.
for _, n := range nodes { for _, n := range nodes {
// Check if local reference // Check if local reference

5
doc/github.go

@ -63,8 +63,9 @@ func getGithubDoc(client *http.Client, match map[string]string, installRepoPath
err := com.HttpGetJSON(client, com.Expand("https://api.github.com/repos/{owner}/{repo}/git/refs?{cred}", match), &refs) err := com.HttpGetJSON(client, com.Expand("https://api.github.com/repos/{owner}/{repo}/git/refs?{cred}", match), &refs)
if err != nil { if err != nil {
log.Error("GET", "Fail to get revision") log.Warn("GET", "Fail to get revision")
log.Error("", err.Error()) log.Warn("", err.Error())
log.Help("Try 'gopm config github' to set and gain more API calls")
break break
} }

Loading…
Cancel
Save