From b482fd4abfb2b3765b1791915b31067a0f80fec7 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 20 May 2026 08:07:43 +0900 Subject: internal/rosa: remove global handles These no longer serve any purpose. Signed-off-by: Ophestra --- cmd/mbf/info_test.go | 12 ++++++------ cmd/mbf/main.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'cmd/mbf') diff --git a/cmd/mbf/info_test.go b/cmd/mbf/info_test.go index 30658119..80653f20 100644 --- a/cmd/mbf/info_test.go +++ b/cmd/mbf/info_test.go @@ -22,12 +22,12 @@ func TestInfo(t *testing.T) { t.Parallel() _t := rosa.Native().Std() - qemuMeta, _ := _t.Load(rosa.QEMU) - glibMeta, _ := _t.Load(rosa.GLib) - zlibMeta, zlib := _t.Load(rosa.Zlib) - zstdMeta, _ := _t.Load(rosa.Zstd) - hakureiMeta, _ := _t.Load(rosa.Hakurei) - hakureiDistMeta, _ := _t.Load(rosa.HakureiDist) + qemuMeta, _ := _t.Load(rosa.H("qemu")) + glibMeta, _ := _t.Load(rosa.H("glib")) + zlibMeta, zlib := _t.Load(rosa.H("zlib")) + zstdMeta, _ := _t.Load(rosa.H("zstd")) + hakureiMeta, _ := _t.Load(rosa.H("hakurei")) + hakureiDistMeta, _ := _t.Load(rosa.H("hakurei-dist")) testCases := []struct { name string diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 9552fc0a..f87d388f 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -122,7 +122,7 @@ func main() { rosa.Native().DropCaches("", flags) cross := flagArch != "" && flagArch != runtime.GOARCH if flagQEMU || cross { - _, cm.qemu = rosa.Native().Std().MustLoad(rosa.QEMU) + _, cm.qemu = rosa.Native().Std().MustLoad(rosa.H("qemu")) } if cross { @@ -769,7 +769,7 @@ func main() { base := rosa.LLVM if !flagWithToolchain { - base = rosa.Musl + base = rosa.H("musl") } handles = append(handles, base, -- cgit v1.3.1