Skip to content

Commit 39956a2

Browse files
authored
propagate output from process-compose invocation (#2594)
## Summary Currently the invocation of process-compose in devbox is smothering useful error messaging from the `is_strict` parsing provided by process-compose. ## How was it tested? ```shell devbox run build # the below is to create a failing process-compose file, to reproduce issue #2579 echo 'version: "0.5" is_strict: true processes: foo: commnad: echo "Hello, world!" ' > process-compose.yaml devbox services up ``` ## Referenced issue #2579 ## Community Contribution License All community contributions in this pull request are licensed to the project maintainers under the terms of the [Apache 2 License](https://www.apache.org/licenses/LICENSE-2.0). By creating this pull request, I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the [Community Contribution License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
1 parent 09c02d8 commit 39956a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/services/manager.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ func StartProcessManager(
167167
}
168168

169169
func runProcessManagerInForeground(cmd *exec.Cmd, config *globalProcessComposeConfig, port int, projectDir string, w io.Writer) error {
170+
cmd.Stdout = os.Stdout
171+
cmd.Stderr = os.Stderr
170172
if err := cmd.Start(); err != nil {
171173
return fmt.Errorf("failed to start process-compose: %w", err)
172174
}

0 commit comments

Comments
 (0)