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
This slices sorting was introduced from the experimental package (the one you are using) to the std library, on doing so they decided to change the actual signature of the function from func(a, b E) bool to func(a, b E) int, you can check the PR
Now this break the SDK for my build process using Go version 1.21 (also tried 1.20)
Maybe I may be doing something wrong but I see this as possible point of failure in the future
Version
v0.47.5
Steps to Reproduce
I created a small snippet, to try to query a pool:
# github.com/cosmos/cosmos-sdk/runtime/services
../../go/pkg/mod/github.com/osmosis-labs/[email protected]/runtime/services/reflection.go:60:28: type func(x *descriptorpb.FileDescriptorProto, y *descriptorpb.FileDescriptorProto) bool of func(x, y *descriptorpb.FileDescriptorProto) bool {…} does not match inferred type func(a *descriptorpb.FileDescriptorProto, b *descriptorpb.FileDescriptorProto) int for func(a E, b E) int
Summary of Bug
In line
cosmos-sdk/runtime/services/reflection.go
Line 60 in 10406e3
SortFunc
This slices sorting was introduced from the experimental package (the one you are using) to the std library, on doing so they decided to change the actual signature of the function from
func(a, b E) bool
tofunc(a, b E) int
, you can check the PRNow this break the SDK for my build process using Go version 1.21 (also tried 1.20)
Maybe I may be doing something wrong but I see this as possible point of failure in the future
Version
v0.47.5
Steps to Reproduce
I created a small snippet, to try to query a pool:
This break giving the following error:
my go.mod after
go mod tidy
The text was updated successfully, but these errors were encountered: