Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

gf 16.6版本编译失败 #131

Open
liqisa opened this issue Nov 11, 2021 · 1 comment
Open

gf 16.6版本编译失败 #131

liqisa opened this issue Nov 11, 2021 · 1 comment

Comments

@liqisa
Copy link

liqisa commented Nov 11, 2021

编译时候报错

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

../../Workspace/project/pkg/mod/github.com/gogf/[email protected]/net/ghttp/internal/client/client_tracing.go:73:3: undefined: attribute.Any
../../Workspace/project/pkg/mod/github.com/gogf/[email protected]/net/ghttp/internal/client/client_tracing_tracer.go:150:3: undefined: attribute.Any
../../Workspace/project/pkg/mod/github.com/gogf/[email protected]/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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants