gogf / gf-cli

GoFrame Command Line Interface, which is your helpmate for building GoFrame application with convenience.
https://goframe.org
MIT License
255 stars 106 forks source link

gf 16.6版本编译失败 #131

Open liqisa opened 3 years ago

liqisa commented 3 years ago

编译时候报错

github.com/gogf/gf/net/ghttp/internal/client

../../Workspace/project/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing.go:73:3: undefined: attribute.Any ../../Workspace/project/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:150:3: undefined: attribute.Any ../../Workspace/project/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:151:3: undefined: attribute.Any

go.mod内容:

module gf-app

require ( github.com/gogf/gf v1.16.6 github.com/gogf/gf/v2 v2.0.0-alpha )

go 1.14

好像是依赖包版本的原因,改如何解决呢?

LugeJiayi commented 3 years ago

impicture_20211121_193710 这个生成了v2的 你把v2都删掉就可以了 重新 go mod tidy