chore: update Francis to rc.2

Also replaces the direct use of the github.com/google/uuid package with the uuid package from the standard library in Go 1.27 (package remains as a transitive dep)
This commit is contained in:
ItalyPaleAle
2026-08-31 07:47:09 +02:00
parent 7c79a9e14b
commit 0c79ae0ea6
15 changed files with 43 additions and 41 deletions
+2 -4
View File
@@ -14,9 +14,9 @@ import (
"strings"
"time"
"unicode/utf8"
"uuid"
"github.com/go-ldap/ldap/v3"
"github.com/google/uuid"
"golang.org/x/text/unicode/norm"
"gorm.io/gorm"
@@ -735,9 +735,7 @@ func convertLdapIdToString(ldapId string) string {
// Try to parse as binary UUID (16 bytes)
if len(ldapId) == 16 {
if parsedUUID, err := uuid.FromBytes([]byte(ldapId)); err == nil {
return parsedUUID.String()
}
return uuid.UUID([]byte(ldapId)).String()
}
// As a last resort, encode as base64 to make it UTF-8 safe