From 76c1fb84c87ba12a22b64f7c471a92603365837f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 4 Jun 2026 18:12:03 +0900 Subject: internal/pkg: stream decompress artifact The tarArtifact predates FileArtifact pipelining. This migrates decompression and buffering into a standalone artifact implementation. Signed-off-by: Ophestra --- internal/pkg/pkg_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/pkg/pkg_test.go') diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 25deb95c..ce11fa90 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -293,15 +293,15 @@ func TestIdent(t *testing.T) { a pkg.Artifact want unique.Handle[pkg.ID] }{ - {"tar", &stubArtifact{ - pkg.KindTar, - []byte{pkg.TarGzip, 0, 0, 0, 0, 0, 0, 0}, + {"decompress", &stubArtifact{ + pkg.KindDecompress, + []byte{pkg.Gzip, 0, 0, 0, 0, 0, 0, 0}, []pkg.Artifact{ overrideIdent{pkg.ID{}, new(stubArtifact)}, }, nil, }, unique.Make[pkg.ID](pkg.MustDecode( - "WKErnjTOVbuH2P9a0gM4OcAAO4p-CoX2HQu7CbZrg8ZOzApvWoO3-ISzPw6av_rN", + "97Y85QewssfPbNIN9cyNhzD4e6dLHcDTU8rb2c34k-aCrZfBNXFUc0duPiLFFcw_", ))}, } -- cgit v1.3.1