Skip to content

Commit

Permalink
osbuildprogress: reorg lines a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Nov 14, 2024
1 parent c3ea488 commit a93c5a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bib/internal/osbuildprogress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,19 @@ func RunOSBuild(manifest []byte, store, outputDirectory string, exports, extraEn
"--monitor-fd=3",
"-",
)
for _, export := range exports {
cmd.Args = append(cmd.Args, "--export", export)
}

cmd.Env = append(os.Environ(), extraEnv...)
cmd.Stdin = bytes.NewBuffer(manifest)
cmd.Stderr = os.Stderr
// we could use "--json" here and would get the build-result
// exported here
cmd.Stdout = nil
cmd.ExtraFiles = []*os.File{wp}
go AttachProgress(wg, rp, os.Stdout)

for _, export := range exports {
cmd.Args = append(cmd.Args, "--export", export)
}
go AttachProgress(wg, rp, os.Stdout)
if err := cmd.Start(); err != nil {
return fmt.Errorf("error starting osbuild: %v", err)
}
Expand Down

0 comments on commit a93c5a6

Please sign in to comment.