aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/internal/pkgserver/api.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-25 13:57:38 +0900
committerOphestra <cat@gensokyo.uk>2026-08-25 14:00:42 +0900
commitac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (patch)
treecb8c451110acbd394667e94ae66c53dc422398b8 /cmd/mbf/internal/pkgserver/api.go
parent7ee5d5368de5494350e7766a595c2bdc8f01ce80 (diff)
internal/rosa: read-only access to built-ins
This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/internal/pkgserver/api.go')
-rw-r--r--cmd/mbf/internal/pkgserver/api.go2
1 files changed, 1 insertions, 1 deletions
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