internal/pkg: cure completion verbose messages
All checks were successful
Test / Create distribution (push) Successful in 49s
Test / Sandbox (push) Successful in 2m59s
Test / ShareFS (push) Successful in 4m52s
Test / Sandbox (race detector) (push) Successful in 5m20s
Test / Hakurei (push) Successful in 5m26s
Test / Hpkg (push) Successful in 5m28s
Test / Hakurei (race detector) (push) Successful in 7m41s
Test / Flake checks (push) Successful in 1m44s
All checks were successful
Test / Create distribution (push) Successful in 49s
Test / Sandbox (push) Successful in 2m59s
Test / ShareFS (push) Successful in 4m52s
Test / Sandbox (race detector) (push) Successful in 5m20s
Test / Hakurei (push) Successful in 5m26s
Test / Hpkg (push) Successful in 5m28s
Test / Hakurei (race detector) (push) Successful in 7m41s
Test / Flake checks (push) Successful in 1m44s
This reports cure completions to the user. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user