podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Exit codes

Open ebekebe opened this issue 3 years ago • 5 comments

Failure exit codes for build and push are currently not forwarded as exit code for podman-compose. This makes it impossible to use podman-compose in a scripted environment like CI.

With this PR, podman-compose stops building/pushing when the underlying podman command fails and forwards its exit code.

ebekebe avatar Jul 13 '22 08:07 ebekebe

Want to put +1 vote for this, this is really annoying.

Here's the example of how it looks like (podman machine is stopped, so it produces error).

image

mi-volodin avatar Nov 10 '22 12:11 mi-volodin

@ebekebe looks like other commands (like run) also suffers from this. Or am I missing something? Why did you choose to fix just these?

mi-volodin avatar Nov 10 '22 12:11 mi-volodin

@mi-volodin I didn't notice that other commands also don't work. I would have included them at the time. However, we don't use podman-compose (and podman) anymore, because of how it is maintained. As there is no feedback from a project maintainer yet, I don't want to put any more effort into this. Feel free to make your own PR or add you changes to this PR. Let me know, if you want push access.

ebekebe avatar Nov 22 '22 12:11 ebekebe

sad to see an unmaintainable repo

emmanuel-apau avatar Feb 09 '23 22:02 emmanuel-apau

Seems like the issue fixed by this PR is still present at least for some commands.

@ebekebe Would you be open to rebase the PR?

p12tic avatar Apr 29 '24 13:04 p12tic

This PR is no longer needed after https://github.com/containers/podman-compose/pull/1259 landed.

p12tic avatar Jul 03 '25 12:07 p12tic