Skip to content
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

fix: update /x/exp package and fix sorting #207

Closed
wants to merge 1 commit into from

Conversation

paralin
Copy link
Contributor

@paralin paralin commented Jul 26, 2023

Update /x/exp to match the go 1.21 "slices" package.

The signature of slices.SortFunc changed to now require the function return an integer instead of a boolean for sorting. Fix the call to slices.SortFunc.

This fixes the build on Go 1.21 when downstream projects import a newer version of /x/exp than the current version of multiaddr.

Update /x/exp to match the go 1.21 "slices" package.

The signature of slices.SortFunc changed to now require the function return an
integer instead of a boolean for sorting. Fix the call to slices.SortFunc.

This fixes the build on Go 1.21 when downstream projects import a newer version
of /x/exp than the current version of multiaddr.

Signed-off-by: Christian Stewart <christian@aperture.us>
go.mod Outdated Show resolved Hide resolved
@paralin
Copy link
Contributor Author

paralin commented Aug 7, 2023

@marten-seemann Fixed - split into two PRs. Confirmed that the other PR is necessary to fix a go1.21 test failure: #212 but it's unrelated to this PR.

@marten-seemann
Copy link
Contributor

Fixed by #210.

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

Successfully merging this pull request may close these issues.

4 participants