Title: gh-100220: Fix error handling in make rules by mgorny · Pull Request #100328 · python/cpython · GitHub
Open Graph Title: gh-100220: Fix error handling in make rules by mgorny · Pull Request #100328 · python/cpython
X Title: gh-100220: Fix error handling in make rules by mgorny · Pull Request #100328 · python/cpython
Description: Use set -e before compound shell commands in order to ensure that make targets fail correctly when at least one of the subcommands fail. This is necessary since make considers a target failed only if one of the shell invocations returns with unsuccessful exit status. If a shell script does not exit explicitly, the shell uses the exit status of the last executed command. This means that when multiple commands are executed (e.g. through a for loop), the exit statuses of prior command invocations are ignored. This can be either resolved by adding an explicit || exit 1 to every command that is expected to succeed, or by running the whole script with set -e. The latter was used here as it the rules seem to be written with the assumption that individual commands were supposed to cause the make rules to fail. Issue: gh-100220
Open Graph Description: Use set -e before compound shell commands in order to ensure that make targets fail correctly when at least one of the subcommands fail. This is necessary since make considers a target failed only ...
X Description: Use set -e before compound shell commands in order to ensure that make targets fail correctly when at least one of the subcommands fail. This is necessary since make considers a target failed only ...
Opengraph URL: https://github.com/python/cpython/pull/100328
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:409967e6-4e65-c143-5aa9-b4cf8efcee9a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D76A:1B40D2:465BA9:606E53:6969DD32 |
| html-safe-nonce | 91fc05ad4a2fe8071f5e0bde26ed3bd65ad17309a822d1bf351b7a60f28c9885 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzZBOjFCNDBEMjo0NjVCQTk6NjA2RTUzOjY5NjlERDMyIiwidmlzaXRvcl9pZCI6Ijc0NTk5OTU2NzgyMDU5MjY3MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 093596e3d0f030b7787af8b67341f5dc256cc1237f84f677e5b2fee2aadcf9f2 |
| hovercard-subject-tag | pull_request:1169738804 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/100328/files |
| twitter:image | https://avatars.githubusercontent.com/u/110765?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/110765?s=400&v=4 |
| og:image:alt | Use set -e before compound shell commands in order to ensure that make targets fail correctly when at least one of the subcommands fail. This is necessary since make considers a target failed only ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width