From a4fab678114b61c1c3473661577797ecf029514d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 20 Jun 2026 01:03:28 +0900 Subject: internal/pkg: optionally exempt implementations from cures counter This avoids holding up many slots with a long pipeline. Signed-off-by: Ophestra --- internal/pkg/tar.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/pkg/tar.go') 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() {} -- cgit v1.3.1