aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/tar.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-13 15:06:53 +0900
committerOphestra <cat@gensokyo.uk>2026-04-13 15:07:30 +0900
commitb587caf2e863902eb04a6540462db5852fd1a0b5 (patch)
tree68c5eb1ad06849b69dfba973a7cb83f53948d8d0 /internal/pkg/tar.go
parentf1c2ca492879d96702155328e2d7b9f6e34ad9db (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/tar.go')
-rw-r--r--internal/pkg/tar.go3
1 files changed, 1 insertions, 2 deletions
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 {