cloudflare / Stout

A reliable static website deploy tool
MIT License
752 stars 29 forks source link

Build failing on CircleCI from demo circle.yml #43

Closed tmcpro closed 7 years ago

tmcpro commented 7 years ago

Running the example circle.yml in the docs with a fresh repo and CircleCI account keeps failing.

Failing command: cd Stout; godep go build -o ../stout src/*.go Exit code: 1

Output:

godep: [WARNING]: godep should only be used inside a valid go package directory and
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.
godep: [WARNING]:   Current Directory: /home/ubuntu/landing/Stout
godep: [WARNING]:   $GOPATH: /home/ubuntu/.go_workspace:/usr/local/go_workspace
src/deploy.go:20:2: cannot find package "github.com/cenk/backoff" in any of:
    /usr/local/go/src/github.com/cenk/backoff (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/cenk/backoff (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/cenk/backoff
    /usr/local/go_workspace/src/github.com/cenk/backoff
src/utils.go:12:2: cannot find package "github.com/imdario/mergo" in any of:
    /usr/local/go/src/github.com/imdario/mergo (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/imdario/mergo (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/imdario/mergo
    /usr/local/go_workspace/src/github.com/imdario/mergo
src/utils.go:13:2: cannot find package "github.com/mitchellh/go-homedir" in any of:
    /usr/local/go/src/github.com/mitchellh/go-homedir (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/mitchellh/go-homedir (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/mitchellh/go-homedir
    /usr/local/go_workspace/src/github.com/mitchellh/go-homedir
src/deploy.go:25:2: cannot find package "github.com/wsxiaoys/terminal/color" in any of:
    /usr/local/go/src/github.com/wsxiaoys/terminal/color (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/wsxiaoys/terminal/color (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/wsxiaoys/terminal/color
    /usr/local/go_workspace/src/github.com/wsxiaoys/terminal/color
src/utils.go:14:2: cannot find package "github.com/zackbloom/go-ini" in any of:
    /usr/local/go/src/github.com/zackbloom/go-ini (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/zackbloom/go-ini (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/zackbloom/go-ini
    /usr/local/go_workspace/src/github.com/zackbloom/go-ini
src/utils.go:15:2: cannot find package "github.com/zackbloom/goamz/aws" in any of:
    /usr/local/go/src/github.com/zackbloom/goamz/aws (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/zackbloom/goamz/aws (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/zackbloom/goamz/aws
    /usr/local/go_workspace/src/github.com/zackbloom/goamz/aws
src/admin.go:9:2: cannot find package "github.com/zackbloom/goamz/cloudfront" in any of:
    /usr/local/go/src/github.com/zackbloom/goamz/cloudfront (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/zackbloom/goamz/cloudfront (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/zackbloom/goamz/cloudfront
    /usr/local/go_workspace/src/github.com/zackbloom/goamz/cloudfront
src/admin.go:10:2: cannot find package "github.com/zackbloom/goamz/iam" in any of:
    /usr/local/go/src/github.com/zackbloom/goamz/iam (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/zackbloom/goamz/iam (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/zackbloom/goamz/iam
    /usr/local/go_workspace/src/github.com/zackbloom/goamz/iam
src/admin.go:11:2: cannot find package "github.com/zackbloom/goamz/route53" in any of:
    /usr/local/go/src/github.com/zackbloom/goamz/route53 (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/zackbloom/goamz/route53 (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/zackbloom/goamz/route53
    /usr/local/go_workspace/src/github.com/zackbloom/goamz/route53
src/admin.go:12:2: cannot find package "github.com/zackbloom/goamz/s3" in any of:
    /usr/local/go/src/github.com/zackbloom/goamz/s3 (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/github.com/zackbloom/goamz/s3 (from $GOPATH)
    /home/ubuntu/.go_workspace/src/github.com/zackbloom/goamz/s3
    /usr/local/go_workspace/src/github.com/zackbloom/goamz/s3
src/admin.go:13:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
    /usr/local/go/src/golang.org/x/crypto/ssh/terminal (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/golang.org/x/crypto/ssh/terminal (from $GOPATH)
    /home/ubuntu/.go_workspace/src/golang.org/x/crypto/ssh/terminal
    /usr/local/go_workspace/src/golang.org/x/crypto/ssh/terminal
src/deploy.go:21:2: cannot find package "golang.org/x/net/html" in any of:
    /usr/local/go/src/golang.org/x/net/html (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/golang.org/x/net/html (from $GOPATH)
    /home/ubuntu/.go_workspace/src/golang.org/x/net/html
    /usr/local/go_workspace/src/golang.org/x/net/html
src/admin.go:14:2: cannot find package "golang.org/x/net/publicsuffix" in any of:
    /usr/local/go/src/golang.org/x/net/publicsuffix (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/golang.org/x/net/publicsuffix (from $GOPATH)
    /home/ubuntu/.go_workspace/src/golang.org/x/net/publicsuffix
    /usr/local/go_workspace/src/golang.org/x/net/publicsuffix
src/utils.go:20:2: cannot find package "gopkg.in/yaml.v1" in any of:
    /usr/local/go/src/gopkg.in/yaml.v1 (from $GOROOT)
    /home/ubuntu/landing/Stout/Godeps/_workspace/src/gopkg.in/yaml.v1 (from $GOPATH)
    /home/ubuntu/.go_workspace/src/gopkg.in/yaml.v1
    /usr/local/go_workspace/src/gopkg.in/yaml.v1
godep: go exit status 1

cd Stout; godep go build -o ../stout src/*.go returned exit code 1

Action failed: cd Stout; godep go build -o ../stout src/*.go

tmcpro commented 7 years ago

@ajoslin I saw you had the same issues here. Did you resolve it?

ajoslin commented 7 years ago

@tmcpro I "solved" it by just downloading the binary release on CircleCI instead:

    - curl -Ls https://github.com/EagerIO/Stout/releases/download/v1.3.1/stout-linux > stout

Works flawlessly.

tmcpro commented 7 years ago

@ajoslin worked. Will make a PR tomorrow with updated CI files

tmcpro commented 7 years ago

@zackbloom no way to always get latest this way to download so will not update the readme.