digitalocean / prometheus-client-c

A Prometheus Client in C
Other
158 stars 78 forks source link

Build error: cannot find package #53

Open MrSparc opened 3 years ago

MrSparc commented 3 years ago

Operating System: Linux x86_64 GNU/Linux make .

+ tar xzf - -C /usr/local
+ mkdir -p /gopath/{src,bin}
+ printf export GOPATH=/gopath\nexport PATH=$PATH:/usr/local/go/bin:/gopath/bin\n
+ printf #!/usr/bin/env bash\nsource /root/.bash_profile\nexec /bin/bash $@\n
+ chmod +x /entrypoint
+ GOPATH=/gopath /usr/local/go/bin/go get github.com/prometheus/prom2json
+ GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json
+ GOPATH=/gopath /usr/local/go/bin/go get github.com/git-chglog/git-chglog
+ GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/questioner.go:10:2: cannot find package "github.com/AlecAivazis/survey/v2" in any of:
        /usr/local/go/src/github.com/AlecAivazis/survey/v2 (from $GOROOT)
        /gopath/src/github.com/AlecAivazis/survey/v2 (from $GOPATH)
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/cli.go:9:2: cannot find package "github.com/fatih/color" in any of:
        /usr/local/go/src/github.com/fatih/color (from $GOROOT)
        /gopath/src/github.com/fatih/color (from $GOPATH)
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/config.go:8:2: cannot find package "github.com/imdario/mergo" in any of:
        /usr/local/go/src/github.com/imdario/mergo (from $GOROOT)
        /gopath/src/github.com/imdario/mergo (from $GOPATH)
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/logger.go:10:2: cannot find package "github.com/kyokomi/emoji/v2" in any of:
        /usr/local/go/src/github.com/kyokomi/emoji/v2 (from $GOROOT)
        /gopath/src/github.com/kyokomi/emoji/v2 (from $GOPATH)
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/main.go:9:2: cannot find package "github.com/mattn/go-colorable" in any of:
        /usr/local/go/src/github.com/mattn/go-colorable (from $GOROOT)
        /gopath/src/github.com/mattn/go-colorable (from $GOPATH)
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/main.go:11:2: cannot find package "github.com/urfave/cli/v2" in any of:
        /usr/local/go/src/github.com/urfave/cli/v2 (from $GOROOT)
        /gopath/src/github.com/urfave/cli/v2 (from $GOPATH)
gopath/src/github.com/git-chglog/git-chglog/cmd/git-chglog/config_loader.go:6:2: cannot find package "gopkg.in/yaml.v2" in any of:
        /usr/local/go/src/gopkg.in/yaml.v2 (from $GOROOT)
        /gopath/src/gopkg.in/yaml.v2 (from $GOPATH)
xmcqueen commented 3 years ago

I've got a fix for this. I'll put up a PR soon

xmcqueen commented 3 years ago

The PR is up for this one.