all repos — website @ 779bfc1e56eec9f70bba21aff3ea490856d90876

My website

fix occasionally-jumbled output

Alan Pearce
commit

779bfc1e56eec9f70bba21aff3ea490856d90876

parent

1effea664c1a9fa9881fa9832d4cfeeac23c1158

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M internal/builder/builder.gointernal/builder/builder.go
@@ -30,7 +30,7 @@ }
func outputToFile(output io.Reader, filename ...string) error { log.Debug("outputting file", "filename", path.Join(filename...)) - file, err := os.OpenFile(path.Join(filename...), os.O_WRONLY|os.O_CREATE, 0644) + file, err := os.OpenFile(path.Join(filename...), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { return errors.WithMessage(err, "could not open output file") }