From ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Aug 2026 13:57:38 +0900 Subject: internal/rosa: read-only access to built-ins This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra --- internal/rosa/report.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/rosa/report.go') diff --git a/internal/rosa/report.go b/internal/rosa/report.go index a97ff8e8..7792d9e9 100644 --- a/internal/rosa/report.go +++ b/internal/rosa/report.go @@ -42,8 +42,8 @@ func WriteReport(msg message.Msg, w io.Writer, c *pkg.Cache) error { zero [wordSize]byte buf [len(pkg.ID{}) + wordSize]byte ) - t := native.Std() - for _, p := range native.Collect() { + t := builtin.Std() + for _, p := range builtin.Collect() { meta, a := t.MustLoad(p) if meta == nil { return errors.New("artifact " + p.String() + " in inconsistent state") -- cgit v1.3.1