futurewei-cloud / DeviceCertification

0 stars 1 forks source link

PoC Build is failed #3

Closed skdwriting closed 6 years ago

skdwriting commented 6 years ago

cd ServiceBus go build server.go

Below errors, log below. I think, we need to set up some of the dependencies before building the file. Please provide the information.

Error: metadb/util/logger/logger.go:23:2: cannot find package "code.huawei.com/paas-security/auditlog" in any of: /usr/local/go/src/code.huawei.com/paas-security/auditlog (from $GOROOT) /home/sanil/go/src/code.huawei.com/paas-security/auditlog (from $GOPATH) metadb/storage/watcher.go:8:2: cannot find package "github.com/coreos/etcd/clientv3" in any of: /usr/local/go/src/github.com/coreos/etcd/clientv3 (from $GOROOT) /home/sanil/go/src/github.com/coreos/etcd/clientv3 (from $GOPATH) metadb/storage/backendstore.go:9:2: cannot find package "github.com/coreos/etcd/edgeclient/clientv3" in any of: /usr/local/go/src/github.com/coreos/etcd/edgeclient/clientv3 (from $GOROOT) /home/sanil/go/src/github.com/coreos/etcd/edgeclient/clientv3 (from $GOPATH) metadb/storage/watcher.go:10:2: cannot find package "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" in any of: /usr/local/go/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes (from $GOROOT) /home/sanil/go/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes (from $GOPATH) metadb/storage/watcher.go:9:2: cannot find package "github.com/coreos/etcd/mvcc/mvccpb" in any of: /usr/local/go/src/github.com/coreos/etcd/mvcc/mvccpb (from $GOROOT) /home/sanil/go/src/github.com/coreos/etcd/mvcc/mvccpb (from $GOPATH) ../centralmetadatadbservice/pkg/apiserver/configure/configure.go:7:2: cannot find package "github.com/emicklei/go-restful" in any of: /usr/local/go/src/github.com/emicklei/go-restful (from $GOROOT) /home/sanil/go/src/github.com/emicklei/go-restful (from $GOPATH) metadb/storage/backendstore.go:13:2: cannot find package "github.com/golang/glog" in any of: /usr/local/go/src/github.com/golang/glog (from $GOROOT) /home/sanil/go/src/github.com/golang/glog (from $GOPATH) servicebus/servicebuspb/servicebus.pb.go:29:8: cannot find package "github.com/golang/protobuf/proto" in any of: /usr/local/go/src/github.com/golang/protobuf/proto (from $GOROOT) /home/sanil/go/src/github.com/golang/protobuf/proto (from $GOPATH) ../centralmetadatadbservice/cmd/apiserver/app/options/options.go:4:2: cannot find package "github.com/spf13/pflag" in any of: /usr/local/go/src/github.com/spf13/pflag (from $GOROOT) /home/sanil/go/src/github.com/spf13/pflag (from $GOPATH) metadb/storage/backendstore.go:10:2: cannot find package "golang.org/x/net/context" in any of: /usr/local/go/src/golang.org/x/net/context (from $GOROOT) /home/sanil/go/src/golang.org/x/net/context (from $GOPATH) servicebus/servicebuspb/servicebus.pb.go:35:2: cannot find package "google.golang.org/grpc" in any of: /usr/local/go/src/google.golang.org/grpc (from $GOROOT) /home/sanil/go/src/google.golang.org/grpc (from $GOPATH) servicebus/grpcClientChannel.go:11:2: cannot find package "google.golang.org/grpc/connectivity" in any of: /usr/local/go/src/google.golang.org/grpc/connectivity (from $GOROOT) /home/sanil/go/src/google.golang.org/grpc/connectivity (from $GOPATH) metadb/storage/configuration.go:4:2: cannot find package "gopkg.in/yaml.v2" in any of: /usr/local/go/src/gopkg.in/yaml.v2 (from $GOROOT) /home/sanil/go/src/gopkg.in/yaml.v2 (from $GOPATH) servicebus/SBWebService.go:35:2: cannot find package "ldrs/cmd/apiserver" in any of: /usr/local/go/src/ldrs/cmd/apiserver (from $GOROOT) /home/sanil/go/src/ldrs/cmd/apiserver (from $GOPATH) servicebus/SBWebService.go:36:2: cannot find package "ldrs/pkg/apiserver/rest" in any of: /usr/local/go/src/ldrs/pkg/apiserver/rest (from $GOROOT) /home/sanil/go/src/ldrs/pkg/apiserver/rest (from $GOPATH) metadb/util/logger/logger.go:20:2: cannot find package "paas_lager" in any of: /usr/local/go/src/paas_lager (from $GOROOT) /home/sanil/go/src/paas_lager (from $GOPATH) metadb/util/logger/logger.go:21:2: cannot find package "paas_lager/lager" in any of: /usr/local/go/src/paas_lager/lager (from $GOROOT) /home/sanil/go/src/paas_lager/lager (from $GOPATH)

skdwriting commented 6 years ago

Using dev branches for the building. cd ServiceBus/cmd cd centerserver & go build server.go (for central cloud)

Error log:

package github.com/coreos/etcd/edgeclient/clientv3: cannot find package "github.com/coreos/etcd/edgeclient/clientv3" in any of: /usr/local/go/src/github.com/coreos/etcd/edgeclient/clientv3 (from $GOROOT) /home/sanil/go/src/github.com/coreos/etcd/edgeclient/clientv3 (from $GOPATH) package code.huawei.com/paas-security/auditlog: unrecognized import path "code.huawei.com/paas-security/auditlog" (https fetch: Get https://code.huawei.com/paas-security/auditlog?go-get=1: dial tcp: lookup code.huawei.com on 127.0.1.1:53: no such host) package paas_lager: unrecognized import path "paas_lager" (import path does not begin with hostname) package paas_lager/lager: unrecognized import path "paas_lager/lager" (import path does not begin with hostname) package ldrs/cmd/apiserver: unrecognized import path "ldrs/cmd/apiserver" (import path does not begin with hostname) package ldrs/pkg/apiserver/rest: unrecognized import path "ldrs/pkg/apiserver/rest" (import path does not begin with hostname)

weijinxu commented 6 years ago
  1. Before we fix the package name, please git clone and rename LightweightETCD to etcd placed under github.com/coreos for passing the build.
  2. use "go get google.golang.org/grpc" and so on to resolve all missing dependencies.