Open liqisa opened 3 years ago
编译时候报错
../../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
好像是依赖包版本的原因,改如何解决呢?
这个生成了v2的 你把v2都删掉就可以了 重新 go mod tidy
编译时候报错
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
好像是依赖包版本的原因,改如何解决呢?