chore: use stdlib uuid package

Go 1.27 ships a uuid package with the same API, dropping the direct
dependency on github.com/google/uuid.

Assisted-by: Claude:Opus 5
This commit is contained in:
silverwind
2026-08-19 23:21:38 +02:00
parent 052bc4b496
commit c15e6e793b
15 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -20,10 +20,10 @@ import (
actions_service "gitea.dev/services/actions"
"connectrpc.com/connect"
gouuid "github.com/google/uuid"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/proto"
"uuid"
)
func NewRunnerServiceHandler() (string, http.Handler) {
@@ -74,7 +74,7 @@ func (s *Service) Register(
// create new runner
name := util.EllipsisDisplayString(req.Msg.Name, 255)
runner := &actions_model.ActionRunner{
UUID: gouuid.New().String(),
UUID: uuid.New().String(),
Name: name,
OwnerID: runnerToken.OwnerID,
RepoID: runnerToken.RepoID,