From 806cd75e28d016230dc1aa0d021152723f6382b5 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 31 Aug 2026 21:26:01 +1000 Subject: [PATCH] fix(config): standardize Provenance to pointer receivers (recvcheck) Paths and String were value receivers alongside the mutating record() pointer method. All Provenance uses are through addressable struct fields, so this is behavior-preserving. --- internal/infrastructure/configuration/provenance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/infrastructure/configuration/provenance.go b/internal/infrastructure/configuration/provenance.go index cd4b75746..c05469ba0 100644 --- a/internal/infrastructure/configuration/provenance.go +++ b/internal/infrastructure/configuration/provenance.go @@ -53,7 +53,7 @@ type Provenance struct { func (p *Provenance) record(o Origin) { p.Origins = append(p.Origins, o) } // Paths returns the contributing file paths in precedence order. -func (p Provenance) Paths() []string { +func (p *Provenance) Paths() []string { paths := make([]string, 0, len(p.Origins)) for _, o := range p.Origins { paths = append(paths, o.Path) @@ -62,7 +62,7 @@ func (p Provenance) Paths() []string { } // String renders the full chain for diagnostics. -func (p Provenance) String() string { +func (p *Provenance) String() string { if len(p.Origins) == 0 { return "(no configuration files)" }