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 -2
View File
@@ -5,8 +5,8 @@ import (
"errors"
"fmt"
"time"
"uuid"
"github.com/google/uuid"
"gorm.io/gorm"
)
@@ -14,7 +14,7 @@ import (
// If no instance ID exists yet, a new one is generated and persisted atomically
func Load(parentCtx context.Context, db *gorm.DB) (string, error) {
// Candidate value used only if there's no instance ID stored yet
newInstanceID := uuid.NewString()
newInstanceID := uuid.NewV4().String()
// We use a raw query because gorm can't build it for us in this atomic way
// The syntax is valid for both SQLite and Postgres