all: imp code

This commit is contained in:
Stanislav Chzhen
2025-08-28 14:22:48 +03:00
parent 20a0702a0c
commit 803f79d144
9 changed files with 117 additions and 69 deletions

View File

@@ -487,6 +487,11 @@ func changedLocales(
gitArgs := []string{"diff", "--numstat", localesDir}
l.DebugContext(ctx, "executing", "cmd", gitCmd, "args", gitArgs)
// TODO(s.chzhen): Consider streaming the output if needed. Using
// [io.Pipe] here is unnecessary; it complicates lifecycle management
// because you must read concurrently and explicitly Close the PipeWriter to
// signal EOF. Since this commands output is small, a bytes.Buffer via
// executil.Run is simplest and safe.
var out bytes.Buffer
err = executil.Run(ctx, cmdCons, &executil.CommandConfig{
Path: gitCmd,