From b587caf2e863902eb04a6540462db5852fd1a0b5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 13 Apr 2026 15:06:53 +0900 Subject: internal/rosa: assume file source is xz-compressed XZ happens to be the only widely-used format that is awful to deal with, everything else is natively supported. Signed-off-by: Ophestra --- internal/pkg/tar.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/pkg') diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index 32b4b362..1c558d52 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -43,8 +43,7 @@ var _ fmt.Stringer = new(tarArtifactNamed) func (a *tarArtifactNamed) String() string { return a.name + "-unpack" } // NewTar returns a new [Artifact] backed by the supplied [Artifact] and -// compression method. The source [Artifact] must be compatible with -// [TContext.Open]. +// compression method. The source [Artifact] must be a [FileArtifact]. func NewTar(a Artifact, compression uint32) Artifact { ta := tarArtifact{a, compression} if s, ok := a.(fmt.Stringer); ok { -- cgit v1.3.1