chore: revert original recursive-archive implementations from PR #4044 and #4761

Signed-off-by: Keith Zantow <keith.zantow@anchore.com>
This commit is contained in:
Keith Zantow
2026-09-09 17:22:51 -04:00
parent 50100f6531
commit 0a93e60b16
28 changed files with 227 additions and 2964 deletions
+1 -17
View File
@@ -10,8 +10,6 @@ import (
)
func TestArchiveScan(t *testing.T) {
archive := createArchive(t, "testdata/archive", t.TempDir())
nestedArchive := createArchive(t, filepath.Dir(archive), t.TempDir())
tests := []struct {
name string
args []string
@@ -25,21 +23,7 @@ func TestArchiveScan(t *testing.T) {
"scan",
"-o",
"json",
"file:" + archive,
},
assertions: []traitAssertion{
assertSuccessfulReturnCode,
assertJsonReport,
assertPackageCount(1),
},
},
{
name: "scan an nested archive within the temp dir",
args: []string{
"scan",
"-o",
"json",
"file:" + nestedArchive,
"file:" + createArchive(t, "testdata/archive", t.TempDir()),
},
assertions: []traitAssertion{
assertSuccessfulReturnCode,