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

Update slices.SortFunc for Go 1.21 #4772

Closed
wants to merge 1 commit into from

Conversation

evanj
Copy link
Contributor

@evanj evanj commented Aug 12, 2023

What changed?

The golang.org/x/exp module was updated to use the same function signature as Go 1.21's upcoming slices.SortFunc function. This changed the return value from a bool (less than) to an int (compare to). Update Temporal to the latest version and fix the uses.

For more details about this change, see the following issue and commit:

Why?

I am attempting to build code in a repository that imports Temporal and has updated to the latest version of this third-party library.

How did you test it?

I only ran the unit tests.

Potential risks

It is possible that I have accidentally reversed the sort order in some cases, but otherwise this should be low risk.

Is hotfix candidate?

No

@evanj evanj requested a review from a team as a code owner August 12, 2023 19:25
@CLAassistant
Copy link

CLAassistant commented Aug 12, 2023

CLA assistant check
All committers have signed the CLA.

@evanj
Copy link
Contributor Author

evanj commented Aug 12, 2023

This is a different version of #4706 , made from the DataDog account's fork instead of my personal account, in an attempt to get the CLA bot to approve it. It appears this is not approved, however DataDog's open source lawyer claims that we have signed a corporate CLA with Temporal. How can I get this verified? Thanks!

The golang.org/x/exp module was updated to use the same function
signature as Go 1.21's upcoming slices.SortFunc function. This changed
the return value from a bool (less than) to an int (compare to). Update
Temporal to the latest version and fix the uses.

For more details about this change, see the following issue and commit:

- golang/go#61374
- https://cs.opensource.google/go/x/exp/+/302865e7556b4ae5de27248ce625d443ef4ad3ed
@evanj evanj force-pushed the evan.jones/exp-slices-update branch from f63c104 to 660a838 Compare August 14, 2023 12:59
@evanj
Copy link
Contributor Author

evanj commented Aug 14, 2023

Okay I've signed the CLA: my confusion was that the CLA says "Individual Contributor License Agreement" but Datadog's open source community person told me that I should click "approve" on that. The CLA should be signed now. Thanks.

@yiminc
Copy link
Member

yiminc commented Aug 25, 2023

This is landed as #4706

@yiminc yiminc closed this Aug 25, 2023
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.

3 participants