Unable to build Deis builder component - cannot find package "github.com/aws/aws-sdk-go/aws"

154 views
Skip to first unread message

rishi.in...@gmail.com

unread,
Oct 13, 2016, 5:48:09 PM10/13/16
to Deis Users List
Hello there,

I am trying to build https://github.com/deis/builder component but it fails with following message - any ideas what could be going on?

I already tried setting GOPATH before running make build.

/=======================================/
$ /tmp/deis/builder# make build
docker run --rm -v /tmp/deis/builder:/go/src/github.com/deis/builder -w /go/src/github.com/deis/builder quay.io/deis/go-dev:0.17.0 go build -ldflags "-s -w -X main.version=git-100c549" -o rootfs/usr/bin/boot boot.go
pkg/storage/image_repo.go:6:2: cannot find package "github.com/aws/aws-sdk-go/aws" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/aws (from $GOROOT)
        /go/src/github.com/aws/aws-sdk-go/aws (from $GOPATH)
pkg/storage/image_repo.go:7:2: cannot find package "github.com/aws/aws-sdk-go/aws/awserr" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/aws/awserr (from $GOROOT)
        /go/src/github.com/aws/aws-sdk-go/aws/awserr (from $GOPATH)
pkg/storage/image_repo.go:8:2: cannot find package "github.com/aws/aws-sdk-go/aws/credentials" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/aws/credentials (from $GOROOT)
        /go/src/github.com/aws/aws-sdk-go/aws/credentials (from $GOPATH)
pkg/storage/image_repo.go:9:2: cannot find package "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds (from $GOROOT)
pkg/storage/image_repo.go:10:2: cannot find package "github.com/aws/aws-sdk-go/aws/ec2metadata" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/aws/ec2metadata (from $GOROOT)
        /go/src/github.com/aws/aws-sdk-go/aws/ec2metadata (from $GOPATH)
pkg/storage/image_repo.go:11:2: cannot find package "github.com/aws/aws-sdk-go/aws/session" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/aws/session (from $GOROOT)
        /go/src/github.com/aws/aws-sdk-go/aws/session (from $GOPATH)
pkg/storage/image_repo.go:12:2: cannot find package "github.com/aws/aws-sdk-go/service/ecr" in any of:
        /usr/local/go/src/github.com/aws/aws-sdk-go/service/ecr (from $GOROOT)
        /go/src/github.com/aws/aws-sdk-go/service/ecr (from $GOPATH)
boot.go:8:2: cannot find package "github.com/codegangsta/cli" in any of:
        /usr/local/go/src/github.com/codegangsta/cli (from $GOROOT)
        /go/src/github.com/codegangsta/cli (from $GOPATH)
pkg/controller/utils.go:7:2: cannot find package "github.com/deis/controller-sdk-go" in any of:
        /usr/local/go/src/github.com/deis/controller-sdk-go (from $GOROOT)
        /go/src/github.com/deis/controller-sdk-go (from $GOPATH)
pkg/gitreceive/build.go:19:2: cannot find package "github.com/deis/controller-sdk-go/api" in any of:
        /usr/local/go/src/github.com/deis/controller-sdk-go/api (from $GOROOT)
        /go/src/github.com/deis/controller-sdk-go/api (from $GOPATH)
pkg/sshd/server.go:16:2: cannot find package "github.com/deis/controller-sdk-go/hooks" in any of:
        /usr/local/go/src/github.com/deis/controller-sdk-go/hooks (from $GOROOT)
        /go/src/github.com/deis/controller-sdk-go/hooks (from $GOPATH)
pkg/controller/utils.go:8:2: cannot find package "github.com/deis/pkg/log" in any of:
        /usr/local/go/src/github.com/deis/pkg/log (from $GOROOT)
        /go/src/github.com/deis/pkg/log (from $GOPATH)
pkg/storage/interfaces.go:4:2: cannot find package "github.com/docker/distribution/context" in any of:
        /usr/local/go/src/github.com/docker/distribution/context (from $GOROOT)
        /go/src/github.com/docker/distribution/context (from $GOPATH)
pkg/storage/interfaces.go:5:2: cannot find package "github.com/docker/distribution/registry/storage/driver" in any of:
        /usr/local/go/src/github.com/docker/distribution/registry/storage/driver (from $GOROOT)
boot.go:18:2: cannot find package "github.com/docker/distribution/registry/storage/driver/azure" in any of:
        /usr/local/go/src/github.com/docker/distribution/registry/storage/driver/azure (from $GOROOT)
boot.go:19:2: cannot find package "github.com/docker/distribution/registry/storage/driver/factory" in any of:
        /usr/local/go/src/github.com/docker/distribution/registry/storage/driver/factory (from $GOROOT)
boot.go:20:2: cannot find package "github.com/docker/distribution/registry/storage/driver/gcs" in any of:
        /usr/local/go/src/github.com/docker/distribution/registry/storage/driver/gcs (from $GOROOT)
boot.go:21:2: cannot find package "github.com/docker/distribution/registry/storage/driver/s3-aws" in any of:
        /usr/local/go/src/github.com/docker/distribution/registry/storage/driver/s3-aws (from $GOROOT)
boot.go:22:2: cannot find package "github.com/docker/distribution/registry/storage/driver/swift" in any of:
        /usr/local/go/src/github.com/docker/distribution/registry/storage/driver/swift (from $GOROOT)
boot.go:23:2: cannot find package "github.com/kelseyhightower/envconfig" in any of:
        /usr/local/go/src/github.com/kelseyhightower/envconfig (from $GOROOT)
        /go/src/github.com/kelseyhightower/envconfig (from $GOPATH)
pkg/gitreceive/k8s_util.go:8:2: cannot find package "github.com/pborman/uuid" in any of:
        /usr/local/go/src/github.com/pborman/uuid (from $GOROOT)
        /go/src/github.com/pborman/uuid (from $GOPATH)
pkg/git/git.go:18:2: cannot find package "golang.org/x/crypto/ssh" in any of:
        /usr/local/go/src/golang.org/x/crypto/ssh (from $GOROOT)
        /go/src/golang.org/x/crypto/ssh (from $GOPATH)
pkg/gitreceive/build.go:24:2: cannot find package "gopkg.in/yaml.v2" in any of:
        /usr/local/go/src/gopkg.in/yaml.v2 (from $GOROOT)
        /go/src/gopkg.in/yaml.v2 (from $GOPATH)
pkg/k8s/namespace.go:4:2: cannot find package "k8s.io/kubernetes/pkg/api" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/api (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/api (from $GOPATH)
pkg/k8s/watch.go:7:2: cannot find package "k8s.io/kubernetes/pkg/client/cache" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/client/cache (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/client/cache (from $GOPATH)
pkg/k8s/secrets.go:5:2: cannot find package "k8s.io/kubernetes/pkg/client/unversioned" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/client/unversioned (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/client/unversioned (from $GOPATH)
pkg/k8s/watch.go:9:2: cannot find package "k8s.io/kubernetes/pkg/controller/framework" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/controller/framework (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/controller/framework (from $GOPATH)
pkg/cleaner/cleaner.go:16:2: cannot find package "k8s.io/kubernetes/pkg/fields" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/fields (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/fields (from $GOPATH)
pkg/k8s/watch.go:10:2: cannot find package "k8s.io/kubernetes/pkg/labels" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/labels (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/labels (from $GOPATH)
pkg/k8s/watch.go:11:2: cannot find package "k8s.io/kubernetes/pkg/runtime" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/runtime (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/runtime (from $GOPATH)
pkg/gitreceive/k8s_util.go:11:2: cannot find package "k8s.io/kubernetes/pkg/util/wait" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/util/wait (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/util/wait (from $GOPATH)
pkg/k8s/secrets.go:6:2: cannot find package "k8s.io/kubernetes/pkg/watch" in any of:
        /usr/local/go/src/k8s.io/kubernetes/pkg/watch (from $GOROOT)
        /go/src/k8s.io/kubernetes/pkg/watch (from $GOPATH)
make: *** [build] Error 1

/=======================================/

Thanks.

Jason Hansen

unread,
Oct 13, 2016, 6:08:40 PM10/13/16
to rishi.in...@gmail.com, Deis Users List
We use glide (http://glide.sh) for dependencies. Did you run `make bootstrap` before `make build`? That should fetch the world:

builder [master]$ make bootstrap build
docker run --rm -v /Users/jhansen/Projects/go/src/github.com/deis/builder:/go/src/github.com/deis/builder -w /go/src/github.com/deis/builder quay.io/deis/go-dev:0.17.0 glide install
[INFO] Downloading dependencies. Please wait...
[INFO] --> Found desired version bitbucket.org/ww/goautoneg 75cd24fc2f2c2a2088577d12123ddee5f54e0675!
[INFO] --> Found desired version github.com/arschles/assert 6882f85ccdc7c1822b146d1a6b0c2c48f91b5140!
[INFO] --> Found desired version github.com/aws/aws-sdk-go 49c3892b61af1d4996292a3025f36e4dfa25eaee!
[INFO] --> Fetching updates for google.golang.org/grpc.

...etc.

Jason

--
You received this message because you are subscribed to the Google Groups "Deis Users List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+unsubscribe@googlegroups.com.
To post to this group, send email to deis-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deis-users/dfd1a37b-df34-4302-a631-a3b161350794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Fisher

unread,
Oct 13, 2016, 6:08:45 PM10/13/16
to rishi.in...@gmail.com, Deis Users List
Hey there, did you try running make bootstrap first?

Matt
--
You received this message because you are subscribed to the Google Groups "Deis Users List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+...@googlegroups.com.

rishi.in...@gmail.com

unread,
Oct 14, 2016, 8:27:21 AM10/14/16
to Deis Users List, rishi.in...@gmail.com
Thank you - that worked!

Wonder if "Development" section can be updated to include "make bootstrap" step.
To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages