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

Replace github.com/pborman/uuid with github.com/google/uuid #1854

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Juneezee
Copy link
Contributor

What was changed

Replace all usages of github.com/pborman/uuid to github.com/google/uuid.

Why?

Currently we have two UUID packages as dependencies:

sdk-go/go.mod

Line 13 in 9ce2508

github.com/pborman/uuid v1.2.1

sdk-go/go.mod

Line 28 in 9ce2508

github.com/google/uuid v1.6.0

The github.com/pborman/uuid package is no longer actively maintained (last release in 2019), so we should switch to the newer github.com/google/uuid.

Additionally, github.com/pborman/uuid already relies on github.com/google/uuid internally, so it makes sense to use github.com/google/uuid directly.

Checklist

  1. How was this tested:
go test ./...
?   	go.temporal.io/sdk/activity	[no test files]
?   	go.temporal.io/sdk/client	[no test files]
ok  	go.temporal.io/sdk/converter	0.033s
ok  	go.temporal.io/sdk/interceptor	0.070s
ok  	go.temporal.io/sdk/internal	36.696s
?   	go.temporal.io/sdk/internal/cmd/dummy	[no test files]
?   	go.temporal.io/sdk/internal/cmd/tools/copyright	[no test files]
?   	go.temporal.io/sdk/internal/cmd/tools/doclink	[no test files]
ok  	go.temporal.io/sdk/internal/common/backoff	0.065s
ok  	go.temporal.io/sdk/internal/common/cache	0.410s
ok  	go.temporal.io/sdk/internal/common/metrics	0.116s
?   	go.temporal.io/sdk/internal/common/retry	[no test files]
?   	go.temporal.io/sdk/internal/common/serializer	[no test files]
ok  	go.temporal.io/sdk/internal/common/util	0.011s
?   	go.temporal.io/sdk/internal/converter	[no test files]
ok  	go.temporal.io/sdk/internal/interceptortest	0.075s
ok  	go.temporal.io/sdk/internal/log	0.010s
ok  	go.temporal.io/sdk/internal/protocol	0.013s
?   	go.temporal.io/sdk/internalbindings	[no test files]
ok  	go.temporal.io/sdk/log	0.010s
ok  	go.temporal.io/sdk/mocks	0.019s
?   	go.temporal.io/sdk/temporal	[no test files]
ok  	go.temporal.io/sdk/temporalnexus	0.011s
ok  	go.temporal.io/sdk/testsuite	22.821s
?   	go.temporal.io/sdk/worker	[no test files]
ok  	go.temporal.io/sdk/workflow	0.008s [no tests to run]

@Juneezee Juneezee requested a review from a team as a code owner February 27, 2025 11:20
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Yeah latest github.com/pborman/uuid just delegates to github.com/google/uuid anyways. I am fine with this change, @Quinn-With-Two-Ns?

@Quinn-With-Two-Ns
Copy link
Contributor

Yeah this should be fine since github.com/pborman/uuid is just calling github.com/google/uuid anyway

The `github.com/pborman/uuid` package is no longer actively maintained
(last release in 2019), so we should switch to the newer
`github.com/google/uuid`.

Additionally, `github.com/pborman/uuid` already relies on
`github.com/google/uuid` internally, so it makes sense to use
`github.com/google/uuid` directly.

Signed-off-by: Eng Zer Jun <[email protected]>
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