Browse Source

bug fix:

pull/103/head
Unknown 12 years ago
parent
commit
487621360c
  1. 2
      README.md
  2. 2
      doc/bitbucket.go
  3. 4
      doc/github.go
  4. 3
      doc/google.go
  5. 1
      doc/launchpad.go
  6. 2
      docs/Quick_Start.md

2
README.md

@ -54,6 +54,8 @@ This application still in experiment, any change could happen, but it doesn't af
- Command `install` and `remove` and `update` backup data(up to 100 records) before executing.
- Command `rollback` is for rolling back to certain operation.
- Add configure option for auto-enable feature, like always using `-p` for downloading.
- Command `install` add flag `-all` for re-installing everything in GOPATH, usually use this after upgrading Go version.
- Command `clean` is for cleaning empty directories.
## License

2
doc/bitbucket.go

@ -61,6 +61,8 @@ func GetBitbucketDoc(client *http.Client, match map[string]string, installGOPATH
if err != nil {
return nil, err
}
node.Type = "commit"
node.Value = match["commit"]
} else {
match["commit"] = node.Value
}

4
doc/github.go

@ -27,7 +27,9 @@ var (
}*/
func SetGithubCredentials(token string) {
githubCred = "access_token=" + token
if len(token) > 0 {
githubCred = "access_token=" + token
}
}
// GetGithubDoc downloads tarball from github.com.

3
doc/google.go

@ -76,6 +76,9 @@ func GetGoogleDoc(client *http.Client, match map[string]string, installGOPATH st
if m := googleRevisionRe.FindSubmatch(p); m == nil {
return nil,
errors.New("doc.GetGoogleDoc(): Could not find revision for " + match["importPath"])
} else {
node.Type = "commit"
node.Value = string(m[1])
}
projectPath := expand("code.google.com/p/{repo}{dot}{subrepo}{dir}", match)

1
doc/launchpad.go

@ -44,6 +44,7 @@ func GetLaunchpadDoc(client *http.Client, match map[string]string, installGOPATH
// Check if download with specific revision.
if isCheckImport || len(node.Value) == 1 {
downloadPath = expand("https://bazaar.launchpad.net/+branch/{repo}/tarball", match)
node.Type = "commit"
} else {
downloadPath = expand("https://bazaar.launchpad.net/+branch/{repo}/tarball/"+node.Value, match)
}

2
docs/Quick_Start.md

@ -47,7 +47,7 @@ Because we don't have all kinds of operating systems, we need your help to compl
- windows_386:
- windows_amd64: [gpm0.1.5 Build 0523](https://docs.google.com/file/d/0B2GBHFyTK2N8Y241eUlKd01Ia1U/edit?usp=sharing)
**Attention** Because we use API to get information of packages that are hosted on github.com, but it limits 60 requests per hour, so you may get errors if you download too much(more than 50 packages per hour). We do not provider access token for secure reason, but we do have configure option `github_access_token` in configuration file `conf/gpm.toml`, so you can go to [here](https://github.com/settings/applications) and create your personal access token, and set it in `gpm.toml`.
**Attention** Because we use API to get information of packages that are hosted on github.com, but it limits 60 requests per hour, so you may get errors if you download too much(more than 50 packages per hour). We do not provider access token for security reason, but we do have configure option `github_access_token` in configuration file `conf/gpm.toml`, so you can go to [here](https://github.com/settings/applications) and create your personal access token, and set it in `gpm.toml`.
## Build your first project

Loading…
Cancel
Save