You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues-translate-bot
changed the title
otelmetric v2.7.x 版本声明依赖的golang版本不正确
otelmetric v2.7.x version declaration relies on an incorrect golang version
Nov 13, 2024
Go version
go version go1.19.3 darwin/arm64
GoFrame version
2.7.4
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
想使用GF的指标监控功能,然后根据自己的golang版本(1.19),选择升级到了 GF v2.7.4 版本,并拉取了 contrib 中对应版本的 otelmetric 包。
go get github.com/gogf/gf/contrib/metric/otelmetric/[email protected]
编译项目时直接报错:
确认了一下 https://github.com/gogf/gf/blob/v2.7.4/contrib/metric/otelmetric/go.mod 中声明依赖的go版本为 1.18。
明显是错误的,应该是 1.20。这样的话 v2.7.x 版本的 otelmetric 就不可用了。
What did you see happen?
如上
What did you expect to see?
解决的思路:
The text was updated successfully, but these errors were encountered: