beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.45k stars 922 forks source link

Error cannot use logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type #722

Closed ludwinggsanchez closed 4 years ago

ludwinggsanchez commented 4 years ago

Getting this error when running go get github.com/beego/bee command

github.com/gadelkareem/delve/service/rpccommon

C:\go-workspace\src\github.com\gadelkareem\delve\service\rpccommon\server.go:83:3: cannot use logger (type "github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type "github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value

github.com/gadelkareem/delve/service/rpc2

C:\go-workspace\src\github.com\gadelkareem\delve\service\rpc2\client.go:23:5: cannot use &RPCClient literal (type RPCClient) as type service.Client in assignment: RPCClient does not implement service.Client (wrong type for ExamineMemory method) have ExamineMemory(uintptr, int) ([]byte, error) want ExamineMemory(uint64, int) ([]byte, bool, error)

sivarajp commented 4 years ago

Try setting set GO111MODULE=on before running. it fixed the issue for me.

ami-m commented 4 years ago

encountered the same behaviour. export GO111MODULE=on did in fact solve this. thank @sivarajp

ludwinggsanchez commented 4 years ago

Thank you, it worked.