-
Notifications
You must be signed in to change notification settings - Fork 20.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not load export data: no export data for "github.com/ethereum/go-ethereum/metrics" #27897
Comments
Cannot use 'namedMetric.less' (type func(namedMetric, namedMetric) bool) as the type func(a namedMetric, b namedMetric) int slices.SortFunc(namedMetrics, namedMetric.less) func SortFunc[S ~[]E, E any](x S, cmp func(a, b E) int) { func (m namedMetric) less(other namedMetric) bool { |
I assume your dependencies are wonky. Make sure you have the versions we depend on if you use go-ethereum as a library. |
But i don't know the reason. github.com/ethereum/go-ethereum v1.12.1 golang.org/x/exp v0.0.0-20230810033253-352e893a4cad // indirect then it failed. |
Do you have other deps too? Maybe something pulls in a newer version of the exp? |
Checked it out, and our dep for exp is |
Yeah, the upstream golang/x/ext broke their API signatures. They ack in in the commit that it's going to be nasty, but that's life. Anyway, opened a PR above to update out dependency too and fix all the broken code. |
thank you. |
golangci-lint run
WARN [runner] Can't run linter goanalysis_metalinter: buildir: failed to load package metrics: could not load export data: no export data for "github.com/ethereum/go-ethereum/metrics"
ERRO Running error: 1 error occurred:
* can't run linter goanalysis_metalinter: buildir: failed to load package metrics: could not load export data: no export data for "github.com/ethereum/go-ethereum/metrics"
The text was updated successfully, but these errors were encountered: