Browse Source

able to change name to others when has name conflict

pull/103/head
Unknown 12 years ago
parent
commit
7860086e8b
  1. 2
      docs/Quick_Start.md
  2. 1
      gpm.go

2
docs/Quick_Start.md

@ -59,6 +59,8 @@ Because we don't have all kinds of operating systems, we need your help to compl
**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(up to 5000 request per hour), and set it in `gpm.toml`.
**Attention** If your computer has been installed others software that called `gpm` also, you can change executable name to something else, for example `gpmgo`, and use `gpmgo` in all commands.
## Install package, or packages
Command `install` downloads and installs packages along with all dependencies(except when you use bundle or snapshot).

1
gpm.go

@ -113,6 +113,7 @@ var commands = []*Command{
func getAppPath() bool {
// Look up executable in PATH variable.
appPath, _ = exec.LookPath(path.Base(os.Args[0]))
// Check if run under $GOPATH/bin
if len(appPath) == 0 {
fmt.Printf("ERROR: getAppPath -> Unable to indicate current execute path.\n")
return false

Loading…
Cancel
Save