From 9c9e02ba1d8c54e1140ba0a2dacee62048121f7a Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 10 Sep 2026 23:18:07 +0200 Subject: [PATCH] mesh-bootstrap: drop an unread parameter A parameter nothing reads is a claim the function makes about what it needs, and this one was wrong. Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF --- internal/bootstrap/apply.go | 2 +- internal/bootstrap/bootstrap.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/bootstrap/apply.go b/internal/bootstrap/apply.go index e792059..6f8e7c0 100644 --- a/internal/bootstrap/apply.go +++ b/internal/bootstrap/apply.go @@ -33,7 +33,7 @@ type Runner = apply.Runner // clearing the launcher's start counter. Those are facts about a running `mesh-host`, and this is // not one. func ApplyBundle(ctx context.Context, o Options, sys system.System, d *declaration.Declaration, - source string, run Runner, say func(string)) (apply.Report, error) { + run Runner, say func(string)) (apply.Report, error) { // Refuse a shape this host cannot apply before anything is applied, exactly as `mesh-host` // does: finding out half way through is the half-configured machine tier 0 exists to prevent. diff --git a/internal/bootstrap/bootstrap.go b/internal/bootstrap/bootstrap.go index 428aefc..44163b1 100644 --- a/internal/bootstrap/bootstrap.go +++ b/internal/bootstrap/bootstrap.go @@ -222,7 +222,7 @@ func Run(ctx context.Context, o Options, d Deps, say func(string)) (Result, erro // ---- 4. apply ----------------------------------------------------------------------- say("apply — raising the substrate") - report, err := ApplyBundle(ctx, o, sys, rewritten.Declaration, o.Out, d.Run, say) + report, err := ApplyBundle(ctx, o, sys, rewritten.Declaration, d.Run, say) result.Applied, result.Changed = len(report.Outcomes), report.Changed() if err != nil { return result, failed(StepApply, err)