From 41a8d03dd2ff1675e9ab5f0c0134e2b4132e28bf Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 12 Jan 2026 20:01:49 +0900 Subject: [PATCH] internal/pkg: cure completion verbose messages This reports cure completions to the user. Signed-off-by: Ophestra --- internal/pkg/pkg.go | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index c1a3f97..a79f66a 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -741,7 +741,13 @@ func (c *Cache) openFile(f File) (r io.ReadCloser, err error) { return } if c.msg.IsVerbose() { - c.msg.Verbosef("curing %s to memory...", reportName(f)) + rn := reportName(f) + c.msg.Verbosef("curing %s to memory...", rn) + defer func() { + if err == nil { + c.msg.Verbosef("cured %s to memory", rn) + } + }() } var data []byte if data, err = f.Cure(c.ctx); err != nil { @@ -935,7 +941,18 @@ func (c *Cache) Cure(a Artifact) ( } if c.msg.IsVerbose() { - c.msg.Verbosef("curing %s...", reportNameIdent(a, id)) + rn := reportNameIdent(a, id) + c.msg.Verbosef("curing %s...", rn) + defer func() { + if err != nil { + return + } + if checksums != "" { + c.msg.Verbosef("cured %s checksum %s", rn, checksums) + } else { + c.msg.Verbosef("cured %s", rn) + } + }() } // cure File outside type switch to skip TContext initialisation