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
Forbid the use of pborman/uuid and remove uses (#8541)
## What
Used the `depguard` linter to prevent importing the package and modified
all uses of it.
Also fixed a bug in the membership code where we were not updating the
next page token:
https://github.com/temporalio/temporal/pull/8541/files#diff-985dd64ffa4c6bfe0248b982dc47439b725862baa3e1f2c559b7ff522bf21969R350
## Why?
From the package README in GitHub:
> This package now leverages the github.com/google/uuid package (which
is based off an earlier version of this package).
Also, there's no point in having two uuid implementations in the
codebase.
## Test
Added the invalid import and confirmed it works:
```
../service/frontend/admin_handler_test.go:13:2: import 'github.com/pborman/uuid' is not allowed from list 'main': Importing github.com/pborman/uuid is disallowed; use github.com/google/uuid instead (depguard)
_ "github.com/pborman/uuid"
```
0 commit comments