Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Unable to compile; dependencies or instructions are missing? #505

Open
gbraad opened this issue Dec 19, 2017 · 0 comments
Open

Unable to compile; dependencies or instructions are missing? #505

gbraad opened this issue Dec 19, 2017 · 0 comments

Comments

@gbraad
Copy link

gbraad commented Dec 19, 2017

While debugging an issue with platform stability of Minishift, I ran into an issue with the tenant description. Below is what I do:

$ minishift start --cpus 4 --memory 8GB --disk-size 50GB --iso-url centos
$ eval `minishift oc-env`
$ eval `minishift docker-env`
$ docker pull fabric8/fabric8-tenant:dev
$ docker pull fabric8/fabric8-tenant
$ docker pull fabric8/fabric8-dependency-wait-service:v6632df1
$ docker pull fabric8/keycloak-postgres:v15751c8
$ docker pull fabric8/fabric8-auth:v26e19df
$ docker pull fabric8/fabric8-dependency-wait-service:v6632df1
$ docker pull rhche/che-starter:7a6345
$ docker pull fabric8/configmapcontroller:2.3.7
$ docker pull fabric8/exposecontroller:2.3.28
$ docker pull fabric8/fabric8-ui:v318d700
$ docker pull fabric8/fabric8-dependency-wait-service:v6632df1
$ docker pull fabric8/generator-backend:1.0.84
$ docker pull fabric8/fabric8-tenant:v8794468
$ docker pull fabric8/fabric8-dependency-wait-service:v6632df1
$ docker pull registry.centos.org/postgresql/postgresql:9.6
$ docker pull fabric8/keycloak-postgres:v15751c8
$ docker pull fabric8/builder-clients:0.11
$ docker pull jimmidyson/pemtokeystore:v0.2.0
$ git clone https://github.com/fabric8io/fabric8-platform.git
$ cd fabric8-platform
$ ./install.sh
$ cd apps/init-tenant
$ mvn fabric8:deploy  -Pdev
$ git clone https://github.com/fabric8-services/fabric8-tenant $GOPATH/src/github.com/fabric8-services/fabric8-tenant
$ cd $GOPATH/src/github.com/fabric8-services/fabric8-tenant
$ make vendor
...
[INFO]  --> Setting version for gopkg.in/square/go-jose.v2 to f8f38de21b4dcd69d0413faf231983f5fd6634b1.
[INFO]  Exporting resolved dependencies...
[INFO]  --> Exporting github.com/armon/go-metrics
[INFO]  --> Exporting github.com/bitly/go-simplejson
[INFO]  --> Exporting github.com/dimfeld/httptreemux
[INFO]  --> Exporting github.com/fabric8-services/fabric8-auth
[INFO]  --> Exporting github.com/ajg/form
[INFO]  --> Exporting github.com/fsnotify/fsnotify
[INFO]  --> Exporting github.com/goadesign/goa
[INFO]  --> Exporting github.com/golang/lint
[INFO]  --> Exporting github.com/hashicorp/golang-lru
[INFO]  --> Exporting github.com/jinzhu/gorm
[INFO]  --> Exporting github.com/hashicorp/go-immutable-radix
[INFO]  --> Exporting github.com/jinzhu/inflection
[INFO]  --> Exporting github.com/hashicorp/hcl
[INFO]  --> Exporting github.com/fabric8-services/fabric8-wit
[INFO]  --> Exporting github.com/jteeuwen/go-bindata
[INFO]  --> Exporting github.com/dimfeld/httppath
[INFO]  --> Exporting github.com/elazarl/go-bindata-assetfs
[INFO]  --> Exporting github.com/dgrijalva/jwt-go
[INFO]  --> Exporting github.com/lib/pq
[INFO]  --> Exporting github.com/fzipp/gocyclo
[INFO]  --> Exporting github.com/magiconair/properties
[INFO]  --> Exporting github.com/pkg/errors
[INFO]  --> Exporting github.com/mitchellh/mapstructure
[INFO]  --> Exporting github.com/pelletier/go-toml
[INFO]  --> Exporting github.com/spf13/cast
[INFO]  --> Exporting github.com/spf13/jwalterweatherman
[INFO]  --> Exporting github.com/spf13/cobra
[INFO]  --> Exporting github.com/Unleash/unleash-client-go
[INFO]  --> Exporting github.com/manveru/faker
[INFO]  --> Exporting github.com/stretchr/testify
[INFO]  --> Exporting github.com/spf13/viper
[INFO]  --> Exporting github.com/sirupsen/logrus
[INFO]  --> Exporting github.com/satori/go.uuid
[INFO]  --> Exporting github.com/spf13/pflag
[INFO]  --> Exporting github.com/zach-klippenstein/goregen
[INFO]  --> Exporting github.com/pelletier/go-buffruneio
[INFO]  --> Exporting github.com/spf13/afero
[INFO]  --> Exporting github.com/wadey/gocovmerge
[INFO]  --> Exporting github.com/davecgh/go-spew
[INFO]  --> Exporting github.com/jstemmer/go-junit-report
[INFO]  --> Exporting github.com/pmezard/go-difflib
[INFO]  --> Exporting golang.org/x/net
[INFO]  --> Exporting golang.org/x/crypto
[INFO]  --> Exporting golang.org/x/sys
[INFO]  --> Exporting golang.org/x/tools
[INFO]  --> Exporting golang.org/x/text
[INFO]  --> Exporting gopkg.in/yaml.v2
[INFO]  --> Exporting gopkg.in/square/go-jose.v2
[INFO]  Replacing existing vendor dependencies
touch vendor
$ make kube-redeploy
mkdir -p bin/docker
cp Dockerfile.dev bin/docker/Dockerfile
GO15VENDOREXPERIMENT=1 GOARCH=amd64 GOOS=linux go build -o bin/docker/fabric8-tenant-linux
main.go:14:2: cannot find package "github.com/fabric8-services/fabric8-tenant/app" in any of:
        /var/workspaces/fabric8-tenant/src/github.com/fabric8-services/fabric8-tenant/vendor/github.com/fabric8-services/fabric8-tenant/app (vendor tree)
        /usr/lib/golang/src/github.com/fabric8-services/fabric8-tenant/app (from $GOROOT)
        /var/workspaces/fabric8-tenant/src/github.com/fabric8-services/fabric8-tenant/app (from $GOPATH)
main.go:15:2: cannot find package "github.com/fabric8-services/fabric8-tenant/auth" in any of:
        /var/workspaces/fabric8-tenant/src/github.com/fabric8-services/fabric8-tenant/vendor/github.com/fabric8-services/fabric8-tenant/auth (vendor tree)
        /usr/lib/golang/src/github.com/fabric8-services/fabric8-tenant/auth (from $GOROOT)
        /var/workspaces/fabric8-tenant/src/github.com/fabric8-services/fabric8-tenant/auth (from $GOPATH)
make: *** [Makefile:284: bin/docker/fabric8-tenant-linux] Error 1

It seems some dependencies are not satisfied corectly or instructions are missing

In short, I am following https://github.com/fabric8-services/fabric8-tenant#rapid-development-on-minikube--minishift (but notice that in these instructions the command make vendor is also missing)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant