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

pkgr doesn't reliably exit with non-zero status on error #398

Open
kyleam opened this issue Feb 3, 2022 · 0 comments
Open

pkgr doesn't reliably exit with non-zero status on error #398

kyleam opened this issue Feb 3, 2022 · 0 comments

Comments

@kyleam
Copy link
Collaborator

kyleam commented Feb 3, 2022

When trying to use pkgr in an automated setting, I've recently been bitten by the fact that pkgr install doesn't reliably indicate failure with a non-zero status. (I think I've seen pkgr install exit with a non-zero status in some cases, so perhaps it's just about what phase failed). I hadn't got around to opening an issue, but I see that @bschulth just reported the same, so here's a dedicated issue.

@bschulth Fwiw I've been using (the equivalent of) this workaround to catch errors:

log=/path/to/pkgr/install/log/file
test -n "$(jq 'select(.level == "error") | .level' <"$log")" && exit 1
@kyleam kyleam changed the title pkgr doesn't reliable exit with non-zero status on error pkgr doesn't reliably exit with non-zero status on error Feb 3, 2022
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