You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 @bschulthjust 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
The text was updated successfully, but these errors were encountered:
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
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 seenpkgr 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:
The text was updated successfully, but these errors were encountered: