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 the x/exp package, and updated tagIsLess function #152

Merged
merged 4 commits into from
Sep 28, 2023

Conversation

needcaffeine
Copy link
Contributor

slices.SortStableFunc now requires the cmp function to return an int, not bool.

tag.go Outdated
@@ -51,7 +51,15 @@ func SortTags(tags []Tag) []Tag {
return deduplicateTags(tags)
}

func tagIsLess(a, b Tag) bool { return a.Name < b.Name }
func tagIsLess(a, b Tag) int {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend you call this compareTags, since less implies a returned bool, which is no longer the case.

@extemporalgenome extemporalgenome merged commit eec59e2 into main Sep 28, 2023
4 of 6 checks passed
@extemporalgenome extemporalgenome deleted the vv-tagIsLess-typecheck branch September 28, 2023 08:55
kevinburkesegment pushed a commit that referenced this pull request Sep 9, 2024
* fix: upgrade the x/exp package, and updated tagIsLess function

* fix the test

* tagIsLess -> tagCompare

* revert dependency versions: attempt to fix subpackage failure
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.

2 participants