From 66bf43c0cc963197f3c8e7dc8ba83b4be1d3d04f Mon Sep 17 00:00:00 2001 From: Christopher Phillips <32073428+spiffcs@users.noreply.github.com> Date: Tue, 26 Aug 2025 17:57:21 -0400 Subject: [PATCH] test: java binary skip for apple Silicon Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com> --- syft/pkg/cataloger/binary/classifiers_java_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/syft/pkg/cataloger/binary/classifiers_java_test.go b/syft/pkg/cataloger/binary/classifiers_java_test.go index 3d642aab6..94fe8351b 100644 --- a/syft/pkg/cataloger/binary/classifiers_java_test.go +++ b/syft/pkg/cataloger/binary/classifiers_java_test.go @@ -1,12 +1,18 @@ package binary import ( + "runtime" "testing" "github.com/anchore/syft/syft/pkg/cataloger/internal/pkgtest" ) func Test_JavaBinaryImage(t *testing.T) { + // no match for platform in manifest on Apple Silicon + if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" { + t.Skip("Java binary images not supported on Apple Silicon (darwin/arm64)") + } + tests := []struct { image string expected []string