aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/tar.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-20 01:03:28 +0900
committerOphestra <cat@gensokyo.uk>2026-06-20 01:03:28 +0900
commita4fab678114b61c1c3473661577797ecf029514d (patch)
treef86f898d05cb3d5861f9c13a0ebe81a2c8a41bd1 /internal/pkg/tar.go
parented5cdd38a40e0e121b8bc1c432bbb57ca584f798 (diff)
internal/pkg: optionally exempt implementations from cures counter
This avoids holding up many slots with a long pipeline. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/tar.go')
-rw-r--r--internal/pkg/tar.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go
index d8ce3b67..9173a976 100644
--- a/internal/pkg/tar.go
+++ b/internal/pkg/tar.go
@@ -16,6 +16,8 @@ type tarArtifact struct {
f Artifact
}
+var _ CuresExempt = new(tarArtifact)
+
// tarArtifactNamed embeds tarArtifact for a [fmt.Stringer] tarball.
type tarArtifactNamed struct {
tarArtifact
@@ -211,3 +213,7 @@ func (a *tarArtifact) Cure(t *TContext) (err error) {
}
return
}
+
+// CuresExempt exempts the cheap [KindTar] implementation often at the end of a
+// [FileArtifact] pipeline.
+func (*tarArtifact) CuresExempt() {}