From 9627942573321a0ac3c393a204d7ba4bea5a7650 Mon Sep 17 00:00:00 2001 From: clawbot Date: Tue, 17 Mar 2026 02:39:38 -0700 Subject: [PATCH] fix: move writeLogsToFile doc comment to correct position The buildRegistryAuths function was inserted between the writeLogsToFile doc comment and the writeLogsToFile function body, causing Go to treat the writeLogsToFile comment as part of buildRegistryAuths godoc. Move the writeLogsToFile comment to sit directly above its function, and keep only the buildRegistryAuths comment above buildRegistryAuths. --- internal/service/deploy/deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/deploy/deploy.go b/internal/service/deploy/deploy.go index 1999b59..1abd436 100644 --- a/internal/service/deploy/deploy.go +++ b/internal/service/deploy/deploy.go @@ -1235,8 +1235,6 @@ func (svc *Service) failDeployment( _ = app.Save(ctx) } -// writeLogsToFile writes the deployment logs to a file on disk. -// Structure: DataDir/logs///__.log.txt // buildRegistryAuths fetches registry credentials for an app and converts them // to Docker RegistryAuth objects for use during image builds. func (svc *Service) buildRegistryAuths( @@ -1265,6 +1263,8 @@ func (svc *Service) buildRegistryAuths( return auths, nil } +// writeLogsToFile writes the deployment logs to a file on disk. +// Structure: DataDir/logs///__.log.txt func (svc *Service) writeLogsToFile(app *models.App, deployment *models.Deployment) { if !deployment.Logs.Valid || deployment.Logs.String == "" { return