internal/pkg: prefix reporting names
All checks were successful
Test / Create distribution (push) Successful in 3m40s
Test / Sandbox (push) Successful in 6m6s
Test / Hakurei (push) Successful in 7m37s
Test / ShareFS (push) Successful in 7m43s
Test / Sandbox (race detector) (push) Successful in 9m6s
Test / Hakurei (race detector) (push) Successful in 11m38s
Test / Flake checks (push) Successful in 5m27s

This reads better than suffixes.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-04 19:05:36 +09:00
parent db69dcf0be
commit 8fb6fdaa80
2 changed files with 4 additions and 4 deletions

View File

@@ -46,8 +46,8 @@ func NewDecompress(a Artifact, compress uint32) FileArtifact {
return &da return &da
} }
// String returns the name of the underlying [Artifact] suffixed with decompress. // String returns the name of the underlying [Artifact] prefixed with decompress.
func (a *decompressArtifactNamed) String() string { return a.name + "-decompress" } func (a *decompressArtifactNamed) String() string { return "decompress-" + a.name }
// Kind returns the hardcoded [Kind] constant. // Kind returns the hardcoded [Kind] constant.
func (a *decompressArtifact) Kind() Kind { return KindDecompress } func (a *decompressArtifact) Kind() Kind { return KindDecompress }

View File

@@ -25,8 +25,8 @@ type tarArtifactNamed struct {
var _ fmt.Stringer = new(tarArtifactNamed) var _ fmt.Stringer = new(tarArtifactNamed)
// String returns the name of the underlying [Artifact] suffixed with unpack. // String returns the name of the underlying [Artifact] prefixed with unpack.
func (a *tarArtifactNamed) String() string { return a.name + "-unpack" } func (a *tarArtifactNamed) String() string { return "unpack-" + a.name }
// NewTar returns a new [Artifact] unpacking the tar stream produced by the // NewTar returns a new [Artifact] unpacking the tar stream produced by the
// backing [Artifact]. The source [Artifact] must be a [FileArtifact]. // backing [Artifact]. The source [Artifact] must be a [FileArtifact].