-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Forcibly replace github.com/satori/go.uuid #18282
Conversation
There are several dependencies which still reference github.com/satori/go-uuid despite the long recognised problem with this library. This PR proposes replacing satori/go.uuid with my recently created fork which is shim against google/uuid. This shim is not a perfect replacement for satori as it misses several functions available on the old type - however, these should only be rarely used in any case and certainly testing appears to imply that these functions are not used. Signed-off-by: Andrew Thornton <[email protected]>
satori/go.uuid#115 mentioned https://github.com/gofrs/uuid as replacement. Could we use that instead? |
Which version of go-frs do you propose to use? |
I have not looked into it but as it has the same api surface so it should be a drop in replacement. If maintaining your shim is not a problem we can use yours. |
If you're going to suggest a different library - please do the work to check and figure out which one. One problem with not using the shim as above is that you won't then be able to forcibly update the version of go-frs using the replace notation. (I think) |
Codecov Report
@@ Coverage Diff @@
## main #18282 +/- ##
=======================================
Coverage ? 45.74%
=======================================
Files ? 831
Lines ? 92165
Branches ? 0
=======================================
Hits ? 42162
Misses ? 43244
Partials ? 6759 Continue to review full report at Codecov.
|
looked at this lib too, i fafour googl/uuid |
what do you think of hosting such gitea-related/maintained shims & forks on gitea.com? |
Happy to move these to gitea.com if preferred. I think we could even consider hosting them on the system.
Unfortunately we can't force the go-frs/uuid code to use the same shim we'd have to create another one. I honestly don't mind replacing to go-frs/uuid if we're happy that would work. Just need to decide the version value to go with. |
Ah, please!!! |
There are several dependencies which still reference github.com/satori/go-uuid despite
the long recognised problem with this library.
This PR proposes replacing satori/go.uuid with my recently created fork which is shim
against google/uuid. This shim is not a perfect replacement for satori as it misses
several functions available on the old type - however, these should only be rarely used
in any case and certainly testing appears to imply that these functions are not used.
Close #18311
Signed-off-by: Andrew Thornton [email protected]