all repos — homestead @ 0a42fa8323dde26e9984ec929464506266c2594e

Code for my website

fix occasionally-jumbled output

Alan Pearce
commit

0a42fa8323dde26e9984ec929464506266c2594e

parent

ffebed669688b747ffc0c00306271917daac0031

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

jump to
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") }