-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Defect] process-compose project update
can't update when processes
is empty list
#284
Comments
Hey @misuzu, Thanks for letting me know about this edge case.
Currently, I am leaning toward option 2 and would've liked to hear your opinion before delivering a fix that might not match your use case. |
I see, this is actually another yaml gotcha. The
The plan was to start an empty process-compose instance in a systemd unit and then use |
If your use case is to support an empty process list, I can fail in case of: version: "0.5"
processes: And let it run in case of: version: "0.5"
processes: {} WDYT? |
From the user's point of view, both configurations have empty processes. I would follow the principle of least surprise and make both configurations equivalent |
Fixed in v1.46.0 |
Defect
Make sure that these boxes are checked before submitting your issue -- thank you!
process-compose info
)Version of
process-compose
: v1.40.1OS environment: NixOS unstable
Steps or code to reproduce the issue:
Expected result:
The
hello
andpc
appear in the TUI, theproject update
exits without errors.Actual result:
The TUI shows panics for a short time and the
project update
command exits with an error:When starting with
/tmp/test-config-1.yaml
and updating to/tmp/test-config-0.yaml
everything seems to be fine.The text was updated successfully, but these errors were encountered: