internal/pkg: highlight miscellaneous verbose output
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 3m11s
Test / Hakurei (push) Successful in 5m10s
Test / Sandbox (race detector) (push) Successful in 6m23s
Test / Hakurei (race detector) (push) Successful in 7m51s
Test / ShareFS (push) Successful in 8m21s
Test / Flake checks (push) Successful in 1m18s

These were missed when adding highlight for core cache verbose output.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
cat
2026-07-30 22:41:18 +09:00
parent ddd90b780b
commit e73f9e0626
4 changed files with 20 additions and 8 deletions
+12 -3
View File
@@ -73,7 +73,10 @@ func (c *Cache) Clean(dry, inputs bool, keep ...Artifact) (
continue continue
} }
c.msg.Verbosef("arranging for destruction of %s...", name) c.msg.Verbosef(
"arranging for destruction of %s%s%s...",
c.sgrIdent, name, c.sgrRes,
)
idents = append(idents, identPair{id, name}) idents = append(idents, identPair{id, name})
} }
@@ -102,7 +105,10 @@ func (c *Cache) Clean(dry, inputs bool, keep ...Artifact) (
if err = c.parent.Err(); err != nil { if err = c.parent.Err(); err != nil {
return destroyedIdents, destroyedChecksums, err return destroyedIdents, destroyedChecksums, err
} }
c.msg.Verbosef("destroying checksum %s...", name) c.msg.Verbosef(
"destroying checksum %s%s%s...",
c.sgrIdent, name, c.sgrRes,
)
if !dry { if !dry {
if err = errors.Join(removeAll(c.base.Append( if err = errors.Join(removeAll(c.base.Append(
dirChecksum, dirChecksum,
@@ -130,7 +136,10 @@ func (c *Cache) Clean(dry, inputs bool, keep ...Artifact) (
continue continue
} }
c.msg.Verbosef("destroying substitute %s...", name) c.msg.Verbosef(
"destroying substitute %s%s%s...",
c.sgrIdent, name, c.sgrRes,
)
if !dry { if !dry {
if err = os.Remove(c.base.Append( if err = os.Remove(c.base.Append(
dirStatus, dirStatus,
+2 -2
View File
@@ -823,8 +823,8 @@ func (d *IRDecoder) decode() (a Artifact, err error) {
d.ident[id] = a d.ident[id] = a
} else { } else {
d.c.msg.Verbosef( d.c.msg.Verbosef(
"artifact %s appeared more than once in IR stream", "artifact %s%s%s appeared more than once in IR stream",
Encode(id.Value()), d.c.sgrIdent, Encode(id.Value()), d.c.sgrRes,
) )
} }
+4 -1
View File
@@ -1137,7 +1137,10 @@ func (c *Cache) Scrub(checks int) error {
} else if !ce.check(ent, want) { } else if !ce.check(ent, want) {
wg.Go(func() { condemn(ent) }) wg.Go(func() { condemn(ent) })
} else { } else {
c.msg.Verbosef("%s is consistent", ent.Name()) c.msg.Verbosef(
"%s%s%s is consistent",
c.sgrIdent, ent.Name(), c.sgrRes,
)
} }
p.Put(want) p.Put(want)
wg.Done() wg.Done()
+2 -2
View File
@@ -174,8 +174,8 @@ func (a *tarArtifact) Cure(t *TContext) (err error) {
case tar.TypeChar: case tar.TypeChar:
t.GetMessage().Verbosef( t.GetMessage().Verbosef(
"skipping character device %d, %d %q", "%sskipping character device %d, %d %q%s",
header.Devmajor, header.Devminor, header.Name, t.cache.sgrWarn, header.Devmajor, header.Devminor, header.Name, t.cache.sgrRes,
) )
continue continue