feedhenry / mcp-standalone

Standalone version of the mobile-control-panel.
http://feedhenry.org
Apache License 2.0
13 stars 21 forks source link

building cli on travis is failing #50

Closed maleck13 closed 7 years ago

maleck13 commented 7 years ago

building cli target on travis is failing even though it succeeds on local machines. Needs investigations error returned is around dependencies

go build -o mcp ./cmd/mcp-cli
vendor/github.com/hashicorp/hcl/hcl/ast/ast.go:9:2: cannot find package "github.com/hashicorp/hcl/hcl/token" in any of:
    /home/travis/gopath/src/github.com/feedhenry/mcp-standalone/vendor/github.com/hashicorp/hcl/hcl/token (vendor tree)
    /home/travis/.gimme/versions/go1.7.6.linux.amd64/src/github.com/hashicorp/hcl/hcl/token (from $GOROOT)
    /home/travis/gopath/src/github.com/hashicorp/hcl/hcl/token (from $GOPATH)
vendor/github.com/hashicorp/hcl/json/scanner/scanner.go:10:2: cannot find package "github.com/hashicorp/hcl/json/token" in any of:
    /home/travis/gopath/src/github.com/feedhenry/mcp-standalone/vendor/github.com/hashicorp/hcl/json/token (vendor tree)
    /home/travis/.gimme/versions/go1.7.6.linux.amd64/src/github.com/hashicorp/hcl/json/token (from $GOROOT)
    /home/travis/gopath/src/github.com/hashicorp/hcl/json/token (from $GOPATH)

the dependency is present in the vendor dir

aidenkeating commented 7 years ago

I had this same issue locally recently also, had to retrieve the dependency myself. I'll take a look unless it's been resolved? @maleck13

secondsun commented 7 years ago

@aidenkeating No I have to get the dependencies manually myself.

Looks like there is a need for go get ./cmd/mcp-cli