internal/pkg: archive unpack artifact

This unpacks an internal/pkg archive stream used in the upcoming mirror service.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-04 19:43:50 +09:00
parent 8fb6fdaa80
commit 8e8410ce38
4 changed files with 160 additions and 0 deletions
+2
View File
@@ -98,6 +98,8 @@ func TestIRRoundtrip(t *testing.T) {
{"file", pkg.NewFile("stub", []byte("stub"))},
{"decompress", pkg.NewDecompress(pkg.NewFile("", []byte{0}), pkg.Bzip2)},
{"archive", pkg.NewArchive(pkg.NewFile("", []byte{0}))},
}
testCasesCache := make([]cacheTestCase, len(testCases))
for i, tc := range testCases {