今天在重新运行之前的老项目时,报了下面的错误:
# chris @ ChrisdeMacBook-Pro in ~/Go/src/hello [15:11:49]
$ go run main.go
../github.com/golang/protobuf/proto/buffer.go:11:2: cannot find package "google.golang.org/protobuf/encoding/prototext" in any of:
/usr/local/go/src/google.golang.org/protobuf/encoding/prototext (from $GOROOT)
/Users/chris/Go/src/google.golang.org/protobuf/encoding/prototext (from $GOPATH)
../github.com/golang/protobuf/proto/buffer.go:12:2: cannot find package "google.golang.org/protobuf/encoding/protowire" in any of:
/usr/local/go/src/google.golang.org/protobuf/encoding/protowire (from $GOROOT)
/Users/chris/Go/src/google.golang.org/protobuf/encoding/protowire (from $GOPATH)
import cycle not allowed
package main
imports github.com/astaxie/beego
imports github.com/prometheus/client_golang/prometheus/promhttp
imports github.com/prometheus/client_golang/prometheus
imports github.com/golang/protobuf/proto
imports google.golang.org/pro

最低0.47元/天 解锁文章
1597

被折叠的 条评论
为什么被折叠?



