What happened?
Problem
If process-compose is configured with is_strict: true and there is an issue in the process-compose.yaml file, devbox services up will fail to run, returning "exit status 1". However if you run the same file with process-compose up you will get a helpful error message on why process-compose is refusing to run.
Suggestion
Devbox should propagate this helpful error message from process-compose to the user.
Steps to reproduce
devbox init
echo 'version: "0.5"
is_strict: true
processes:
foo:
commnad: echo "Hello, world!"
' > process-compose.yaml
devbox services up
- Here we can see the error message is not propagated
devbox add [email protected] # the version currently used by devbox
devbox run process-compose up
- Here we can see a helpful output from process-compose containing
FTL Failed to load project error="unknown key 'commnad' found in process 'foo'"
Command
services
devbox.json
Devbox version
0.14.0
Nix version
nix (Nix) 2.24.10
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response
{ "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json", "packages": ["[email protected]"], "shell": { "init_hook": [ "echo 'Welcome to devbox!' > /dev/null" ], "scripts": { "test": [ "echo \"Error: no test specified\" && exit 1" ] } } }