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_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/mbf/internal/pkgserver/api_test.go') diff --git a/cmd/mbf/internal/pkgserver/api_test.go b/cmd/mbf/internal/pkgserver/api_test.go index 3a9945da..1552fec9 100644 --- a/cmd/mbf/internal/pkgserver/api_test.go +++ b/cmd/mbf/internal/pkgserver/api_test.go @@ -31,7 +31,7 @@ func TestAPIInfo(t *testing.T) { checkPayload(t, resp, struct { Count int `json:"count"` HakureiVersion string `json:"hakurei_version"` - }{len(rosa.Native().Collect()), info.Version()}) + }{len(rosa.Collect()), info.Version()}) } func TestAPIGet(t *testing.T) { @@ -92,7 +92,7 @@ func TestAPIGet(t *testing.T) { ) }) - count := len(rosa.Native().Collect()) + count := len(rosa.Collect()) t.Run("index", func(t *testing.T) { t.Parallel() checkValidate( -- cgit v1.3.1