fix(lint): wrap long bootstrap error format string to satisfy golines

This commit is contained in:
sushi30 2026-03-26 08:16:32 +01:00 committed by github-actions[bot]
parent 32433f85d2
commit 2431b9987b

View file

@ -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()