struCoder / pmgo

pmgo is a process manager for Golang applications.
MIT License
625 stars 65 forks source link

cannot find package #37

Closed zulhfreelancer closed 5 years ago

zulhfreelancer commented 5 years ago

Running the install script in fresh new server produces the following errors:

root@my-vps:/tmp# curl https://raw.githubusercontent.com/struCoder/pmgo/master/install.sh | sh

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1200  100  1200    0     0  30458      0 --:--:-- --:--:-- --:--:-- 30769
--2019-04-02 13:13:47--  https://github.com/struCoder/pmgo/archive/v0.5.1.tar.gz
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/struCoder/pmgo/tar.gz/v0.5.1 [following]
--2019-04-02 13:13:47--  https://codeload.github.com/struCoder/pmgo/tar.gz/v0.5.1
Resolving codeload.github.com (codeload.github.com)... 192.30.255.120, 192.30.255.121
Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'v0.5.1.tar.gz'

    [ <=>                                                                                                                                        ] 15,342      --.-K/s   in 0.07s

2019-04-02 13:13:48 (207 KB/s) - 'v0.5.1.tar.gz' saved [15342]

pmgo-0.5.1/
pmgo-0.5.1/LICENSE
pmgo-0.5.1/README.md
pmgo-0.5.1/changelog.md
pmgo-0.5.1/config.toml
pmgo-0.5.1/install.sh
pmgo-0.5.1/lib/
pmgo-0.5.1/lib/cli/
pmgo-0.5.1/lib/cli/cli.go
pmgo-0.5.1/lib/install/
pmgo-0.5.1/lib/install/install.go
pmgo-0.5.1/lib/master/
pmgo-0.5.1/lib/master/master.go
pmgo-0.5.1/lib/master/remote_master.go
pmgo-0.5.1/lib/preparable/
pmgo-0.5.1/lib/preparable/process.go
pmgo-0.5.1/lib/process/
pmgo-0.5.1/lib/process/proc_container.go
pmgo-0.5.1/lib/process/proc_status.go
pmgo-0.5.1/lib/utils/
pmgo-0.5.1/lib/utils/file_util.go
pmgo-0.5.1/lib/utils/filemutex.go
pmgo-0.5.1/lib/utils/funs.go
pmgo-0.5.1/lib/watcher/
pmgo-0.5.1/lib/watcher/watcher.go
pmgo-0.5.1/pmgo.go
build pmgo...
lib/utils/file_util.go:7:2: cannot find package "github.com/BurntSushi/toml" in any of:
    /usr/local/go/src/github.com/BurntSushi/toml (from $GOROOT)
    /root/go/src/github.com/BurntSushi/toml (from $GOPATH)
pmgo.go:45:2: cannot find package "github.com/Sirupsen/logrus" in any of:
    /usr/local/go/src/github.com/Sirupsen/logrus (from $GOROOT)
    /root/go/src/github.com/Sirupsen/logrus (from $GOPATH)
lib/cli/cli.go:9:2: cannot find package "github.com/fatih/color" in any of:
    /usr/local/go/src/github.com/fatih/color (from $GOROOT)
    /root/go/src/github.com/fatih/color (from $GOPATH)
lib/cli/cli.go:10:2: cannot find package "github.com/olekukonko/tablewriter" in any of:
    /usr/local/go/src/github.com/olekukonko/tablewriter (from $GOROOT)
    /root/go/src/github.com/olekukonko/tablewriter (from $GOPATH)
pmgo.go:33:2: cannot find package "github.com/sevlyar/go-daemon" in any of:
    /usr/local/go/src/github.com/sevlyar/go-daemon (from $GOROOT)
    /root/go/src/github.com/sevlyar/go-daemon (from $GOPATH)
lib/process/proc_status.go:7:2: cannot find package "github.com/struCoder/pidusage" in any of:
    /usr/local/go/src/github.com/struCoder/pidusage (from $GOROOT)
    /root/go/src/github.com/struCoder/pidusage (from $GOPATH)
pmgo.go:31:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of:
    /usr/local/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT)
    /root/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH)
build done
rm build files
all down.

Can we fix the script to auto-download the dependencies?

struCoder commented 5 years ago

@zulhfreelancer Em...dependence problems You can install the packages step by step.

Welcome to make contributes 💯

struCoder commented 5 years ago

@zulhfreelancer There some problems in install.sh

The recommend way to install pmgo just run go get github.com/struCoder/pmgo. golang will install dependences automatically