Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: upgrade Go version to 1.26.0 in go.mod (#19550)

p0nyabdbd494d203
diff --git a/backend/api/auth/auth.go b/backend/api/auth/auth.go
index e11f8e5cc3..a2aceea478 100644
--- a/backend/api/auth/auth.go
+++ b/backend/api/auth/auth.go
@@ -203,7 +203,7 @@ func (in *APIAuthInterceptor) authenticate(ctx context.Context, accessTokenStr s
return nil, nil, errs.Errorf("principal %q not exists in the access token", claims.Subject)
}
if user.MemberDeleted {
- return nil, nil, errs.Errorf("principal ID %q has been deactivated by administrators", user.ID)
+ return nil, nil, errs.Errorf("principal ID %d has been deactivated by administrators", user.ID)
}
return user, claims, nil
diff --git a/backend/api/lsp/fs.go b/backend/api/lsp/fs.go
index 8a8eeb1bf2..62e6f65572 100644
--- a/backend/api/lsp/fs.go
+++ b/backend/api/lsp/fs.go
@@ -51,15 +51,15 @@ func applyContentChanges(uri lsp.DocumentURI, content []byte, changes []lsp.Text
}
start, err := offsetForPosition(content, change.Range.Start)
if err != nil {
- return nil, errors.Wrapf(err, "received textDocument/didChange for invalid position %q on %q", change.Range.Start, uri)
+ return nil, errors.Wrapf(err, "received textDocument/didChange for invalid position %v on %q", change.Range.Start, uri)
}
end, err := offsetForPosition(content, change.Range.End)
if err != nil {
- return nil, errors.Wrapf(err, "received textDocument/didChange for invalid position %q on %q", change.Range.End, uri)
+ return nil, errors.Wrapf(err, "received textDocument/didChange for invalid position %v on %q", change.Range.End, uri)
}
if start < 0 || end > len(content) || start > end {
- return nil, errors.Errorf("received textDocument/didChange for out of range position %q on %q", change.Range, uri)
+ return nil, errors.Errorf("received textDocument/didChange for out of range position %v on %q", change.Range, uri)
}
// Try avoid doing too many allocations, so use bytes.Buffer
diff --git a/backend/api/v1/database_service_changelog.go b/backend/api/v1/database_service_changelog.go
index b1ae87a09e..5eca72368c 100644
--- a/backend/api/v1/database_service_changelog.go
+++ b/backend/api/v1/database_service_changelog.go
@@ -167,7 +167,7 @@ func (s *DatabaseService) GetChangelog(ctx context.Context, req *connect.Request
return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to list changelogs"))
}
if changelog == nil {
- return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("changelog %q not found", changelogUID))
+ return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("changelog %d not found", changelogUID))
}
database, err := s.store.GetDatabase(ctx, &store.FindDatabaseMessage{
diff --git a/backend/component/ghost/config.go b/backend/component/ghost/config.go
index 1019ea9b64..e5943afe48 100644
--- a/backend/component/ghost/config.go
+++ b/backend/component/ghost/config.go
@@ -329,12 +329,12 @@ func NewMigrationContext(ctx context.Context, taskID int, database *store.Databa
}
if v := userFlags.cutoverLockTimeoutSeconds; v != nil {
if err := migrationContext.SetCutOverLockTimeoutSeconds(*v); err != nil {
- return nil, errors.Wrapf(err, "failed to set cutover lock timeout %q", *v)
+ return nil, errors.Wrapf(err, "failed to set cutover lock timeout %d", *v)
}
}
if v := userFlags.exponentialBackoffMaxInterval; v != nil {
if err := migrationContext.SetExponentialBackoffMaxInterval(*v); err != nil {
- return nil, errors.Wrapf(err, "failed to set exponential backoff max interval %q", *v)
+ return nil, errors.Wrapf(err, "failed to set exponential backoff max interval %d", *v)
}
}
if v := userFlags.maxLagMillis; v != nil {
diff --git a/go.mod b/go.mod
index 780f2b9765..9d4c5a3abb 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/bytebase/bytebase
-go 1.25.5
+go 1.26.0
require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20260209202127-80ab13bee0bf.1