internal/pkg: optionally register binfmt
Some checks failed
Test / Create distribution (push) Successful in 1m5s
Test / Sandbox (push) Successful in 3m5s
Test / Hakurei (push) Successful in 6m9s
Test / Sandbox (race detector) (push) Successful in 2m30s
Test / Hakurei (race detector) (push) Successful in 3m31s
Test / ShareFS (push) Failing after 2m37s
Test / Flake checks (push) Has been skipped

This transparently supports curing foreign exec artifacts.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-07 18:04:59 +09:00
parent 8a3c3d145a
commit 9de1b6a3df
15 changed files with 203 additions and 34 deletions

View File

@@ -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) {