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 --- cmd/mbf/internal/pkgserver/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/mbf/internal/pkgserver/api.go') diff --git a/cmd/mbf/internal/pkgserver/api.go b/cmd/mbf/internal/pkgserver/api.go index 125be829..68ccd471 100644 --- a/cmd/mbf/internal/pkgserver/api.go +++ b/cmd/mbf/internal/pkgserver/api.go @@ -30,7 +30,7 @@ var ( // handleInfo writes constant system information. func handleInfo(w http.ResponseWriter, _ *http.Request) { infoPayloadOnce.Do(func() { - infoPayload.Count = len(rosa.Native().Collect()) + infoPayload.Count = len(rosa.Collect()) infoPayload.HakureiVersion = info.Version() }) // TODO(mae): cache entire response if no additional fields are planned -- cgit v1.3.1