cmd/osbuild-jobsite-builder: actually assign the stdout buffer

The buffer needs to be assigned to the process' stdout for the buffer to
fill up.
This commit is contained in:
Sanne Raymaekers 2024-02-15 18:23:28 +01:00
parent b9584099ab
commit ab6fd9e53e

View file

@ -263,6 +263,7 @@ func (builder *Builder) HandleBuild(w http.ResponseWriter, r *http.Request) erro
logrus.Infof("BackgroundProcess: Starting %s with %s", builder.Build.Process, envs)
builder.Build.Stdout = &bytes.Buffer{}
builder.Build.Process.Stdout = builder.Build.Stdout
builder.Build.Stderr, err = builder.Build.Process.StderrPipe()