From 2431b9987b651f1f61b4eef89f7116782529eeb0 Mon Sep 17 00:00:00 2001 From: sushi30 Date: Thu, 26 Mar 2026 08:16:32 +0100 Subject: [PATCH] fix(lint): wrap long bootstrap error format string to satisfy golines --- pkg/agent/context.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/agent/context.go b/pkg/agent/context.go index b1725a51b..de4c6e63b 100644 --- a/pkg/agent/context.go +++ b/pkg/agent/context.go @@ -468,7 +468,12 @@ func (cb *ContextBuilder) LoadBootstrapFiles() string { // Surface bootstrap errors so the agent can diagnose and fix bootstrap.sh errorLogPath := filepath.Join(cb.workspace, "bootstrap.error.log") if data, err := os.ReadFile(errorLogPath); err == nil && len(data) > 0 { - fmt.Fprintf(&sb, "## BOOTSTRAP ERROR WARNING\n\nThe last container start ran `bootstrap.sh` and it FAILED. Some capabilities may be missing. You should read `bootstrap.sh`, identify the issue, fix it, and tell the user to restart the container.\n\nError output:\n```\n%s\n```\n\n", data) + const bootstrapWarnHeader = "## BOOTSTRAP ERROR WARNING\n\n" + + "The last container start ran `bootstrap.sh` and it FAILED. " + + "Some capabilities may be missing. You should read `bootstrap.sh`, " + + "identify the issue, fix it, and tell the user to restart the container." + + "\n\nError output:\n```\n%s\n```\n\n" + fmt.Fprintf(&sb, bootstrapWarnHeader, data) } return sb.String()