我正在尝试完成coreos dex //github.com/coreos/dex.git。我已经在Centos中克隆并安装了依赖包&使用Go版本1.9。
当我运行的时候,它会抛出下面的错误信息。
git clone https://github.com/coreos/dex.git
cd dex
make
# make
can't load package: package github.com/coreos/dex/cmd/dex: cannot find package "github.com/coreos/dex/cmd/dex" in any of:
/usr/lib/golang/src/github.com/coreos/dex/cmd/dex (from $GOROOT)
/root/work/src/github.com/coreos/dex/cmd/dex (from $GOPATH)
make: *** [bin/dex] Error 1使用glide安装了所有必需的依赖包。
[INFO] Exporting resolved dependencies...
[INFO] --> Exporting github.com/beevik/etree
[INFO] --> Exporting github.com/coreos/etcd
[INFO] --> Exporting github.com/ghodss/yaml
[INFO] --> Exporting github.com/coreos/go-oidc
[INFO] --> Exporting github.com/golang/protobuf
[INFO] --> Exporting github.com/cockroachdb/cockroach-go
[INFO] --> Exporting github.com/gtank/cryptopasta
[INFO] --> Exporting github.com/inconshreveable/mousetrap
[INFO] --> Exporting github.com/jonboulle/clockwork
[INFO] --> Exporting github.com/spf13/cobra
[INFO] --> Exporting github.com/kylelemons/godebug
[INFO] --> Exporting github.com/pquerna/cachecontrol
[INFO] --> Exporting github.com/russellhaering/goxmldsig
[INFO] --> Exporting github.com/mattn/go-sqlite3
[INFO] --> Exporting github.com/sirupsen/logrus
[INFO] --> Exporting github.com/gorilla/context
[INFO] --> Exporting github.com/go-sql-driver/mysql
[INFO] --> Exporting github.com/gorilla/handlers
[INFO] --> Exporting github.com/gorilla/mux
[INFO] --> Exporting github.com/lib/pq
[INFO] --> Exporting github.com/spf13/pflag
[INFO] --> Exporting golang.org/x/crypto
[INFO] --> Exporting golang.org/x/net
[INFO] --> Exporting google.golang.org/genproto
[INFO] --> Exporting google.golang.org/appengine
[INFO] --> Exporting golang.org/x/oauth2
[INFO] --> Exporting golang.org/x/sys
[INFO] --> Exporting gopkg.in/asn1-ber.v1
[INFO] --> Exporting gopkg.in/ldap.v2
[INFO] --> Exporting google.golang.org/grpc
[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有什么技巧可以解决这个编译问题吗?
发布于 2017-12-09 00:21:15
找到了从此处https://github.com/coreos/dex/blob/master/Documentation/getting-started.md构建dex的正确步骤
$ go get github.com/coreos/dex
$ cd $GOPATH/src/github.com/coreos/dex
$ makehttps://stackoverflow.com/questions/47697658
复制相似问题