Skip to content
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

apx run reports zero exit code on failed process #434

Open
jardon opened this issue Dec 6, 2024 · 1 comment
Open

apx run reports zero exit code on failed process #434

jardon opened this issue Dec 6, 2024 · 1 comment

Comments

@jardon
Copy link
Member

jardon commented Dec 6, 2024

the error code either needs to be forwarded or there needs to be a generic error thrown for the process failure.

apx snapcraft run "/usr/bin/echo pass"
Error: crun: executable file `/usr/bin/echo pass` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
Error: An error occurred while executing the command: exit status 127
Usage:
  apx snapcraft run [flags]

Flags:
  -h, --help   help for run

  ERROR   An error occurred while executing the command: exit status 127
echo $?
0
@jardon
Copy link
Member Author

jardon commented Dec 6, 2024

distrobox appears to be behaving correctly here.

/.system/usr/share/apx/distrobox/distrobox enter --name apx-snapcraft -- exit 0
Error: crun: executable file `exit` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
echo $?
127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant