aboutsummaryrefslogtreecommitdiffstats
path: root/commands/execenv/env.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-22 00:48:00 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-22 00:48:00 +0100
commitd65e8837aa7bb1a6abb6892b9f2664e1b7edb02e (patch)
tree331b05b689182b4d2bf43fd7cf92ca03b055bff0 /commands/execenv/env.go
parent9b98fc06489353053564b431ac0c0d73a5c55a56 (diff)
downloadgit-bug-d65e8837aa7bb1a6abb6892b9f2664e1b7edb02e.tar.gz
cache: generic withSnapshot, some cleanup
Diffstat (limited to 'commands/execenv/env.go')
-rw-r--r--commands/execenv/env.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/execenv/env.go b/commands/execenv/env.go
index 4b353279..0813ab7e 100644
--- a/commands/execenv/env.go
+++ b/commands/execenv/env.go
@@ -135,20 +135,20 @@ func LoadBackend(env *Env) func(*cobra.Command, []string) error {
}
if events != nil {
- _, _ = fmt.Fprintln(os.Stderr, "Building cache... ")
+ env.Err.Println("Building cache... ")
}
for event := range events {
if event.Err != nil {
- _, _ = fmt.Fprintf(os.Stderr, "Cache building error [%s]: %v\n", event.Typename, event.Err)
+ env.Err.Printf("Cache building error [%s]: %v\n", event.Typename, event.Err)
continue
}
switch event.Event {
case cache.BuildEventStarted:
- _, _ = fmt.Fprintf(os.Stderr, "[%s] started\n", event.Typename)
+ env.Err.Printf("[%s] started\n", event.Typename)
case cache.BuildEventFinished:
- _, _ = fmt.Fprintf(os.Stderr, "[%s] done\n", event.Typename)
+ env.Err.Printf("[%s] done\n", event.Typename)
}
}