beego / bee

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

bee v2 install fail #855

Closed mox1206 closed 1 year ago

mox1206 commented 1 year ago

Golang version: go1.20.5 windows/amd64 Beego version: 2.1.0 error:

github.com/go-delve/delve/service/dap

....\pkg\mod\github.com\go-delve\delve@v1.20.2\service\dap\server.go:1972:24: cannot use dap.Source{…} (value of type "github.com/google/go-dap".Source) as "github.com/google/go-dap".Source value in assignment ....\pkg\mod\github.com\go-delve\delve@v1.20.2\service\dap\server.go:3057:31: cannot use dap.Source{…} (value of type "github.com/google/go-dap".Source) as "github.com/google/go-dap".Source value in assignment ....\pkg\mod\github.com\go-delve\delve@v1.20.2\service\dap\server.go:3679:13: cannot use dap.Source{…} (value of type "github.com/google/go-dap".Source) as *"github.com/google/go-dap".Source value in struct literal

flycash commented 1 year ago

I think this is the version conflict of github.com/go-delve/delve, and I check Beego, it dose not rely on this module.

mox1206 commented 1 year ago

The bee v2 tool relies on github.com/go-delve/delve v1.5.0, but I downloaded v1.20.2 locally, which caused the installation to fail, not because of the beego dependency.

flycash commented 1 year ago

can you keep using the v1.5.0? only for the bee.

flycash commented 1 year ago

I will upgrade it this weekend or next week.

flycash commented 1 year ago

you can try bee@develop branch and if you got any problem, you can reopen this issue. Or I will release a new version next week.