From 8d72b9e5bd8d99cbd32ce0ebe2f5da8e9b1d88ce Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 7 May 2026 18:04:59 +0900 Subject: internal/pkg: optionally register binfmt This transparently supports curing foreign exec artifacts. Signed-off-by: Ophestra --- internal/pkg/pkg_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/pkg/pkg_test.go') diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 04bd665f..75f14a0e 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -1289,6 +1289,11 @@ func TestErrors(t *testing.T) { {"UnsupportedVariantError", pkg.UnsupportedVariantError( "rosa", ), `unsupported variant "rosa"`}, + + {"UnsupportedArchError zero", pkg.UnsupportedArchError(""), + "invalid architecture name"}, + {"UnsupportedArchError", pkg.UnsupportedArchError("riscv64"), + "unsupported architecture riscv64"}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { -- cgit v1.3.1