Title: "make [force_]release" attempts upload even if build fails · Issue #1660 · gitpython-developers/GitPython · GitHub
Open Graph Title: "make [force_]release" attempts upload even if build fails · Issue #1660 · gitpython-developers/GitPython
X Title: "make [force_]release" attempts upload even if build fails · Issue #1660 · gitpython-developers/GitPython
Description: The force_release target in Makefile (which is also used by the release target after it attempts to check some things separate from this issue) had previously stopped after a failed attempt to build. But since #1654 it runs twine to atte...
Open Graph Description: The force_release target in Makefile (which is also used by the release target after it attempts to check some things separate from this issue) had previously stopped after a failed attempt to buil...
X Description: The force_release target in Makefile (which is also used by the release target after it attempts to check some things separate from this issue) had previously stopped after a failed attempt to buil...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1660
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"make [force_]release\" attempts upload even if build fails","articleBody":"The `force_release` target in `Makefile` (which is also used by the `release` target after it attempts to check some things separate from this issue) had previously stopped after a failed attempt to build. But since #1654 it runs `twine` to attempt the upload whether or not the build succeeded.\r\n\r\nThe problem is that a command of the form `a || b` succeeds when `a` succeeds, but also when `a` fails but `b` succeeds:\r\n\r\nhttps://github.com/gitpython-developers/GitPython/blob/25597cbc05c7e478efc77bacd0f441962dbf87d5/Makefile#L20\r\n\r\nSo that command fails only in the rare case that `echo` fails to write to standard output.\r\n\r\nBut the message about how using a virtual environment may remedy a build failure is valuable and should not be removed. Instead, the logic can be adjusted to make sure the command fails if it gets that far.\r\n\r\nThere are some other improvements I'd like to propose to `Makefile`, and I think it will be convenient to include a fix for this with them. But I wanted to open an issue for this, because I think this behavior is unexpected and could cause confusion while making a release if it is not anticipated (if the next release is made before it is fixed and something keeps the build command from succeeding).","author":{"url":"https://github.com/EliahKagan","@type":"Person","name":"EliahKagan"},"datePublished":"2023-09-13T12:47:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1660/GitPython/issues/1660"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2bbdd459-b0e6-3ab5-37f3-6d15d772c04f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82AA:1802EE:37D1891:3886326:69685268 |
| html-safe-nonce | 153816a986a418fa63f86ef3673d8323dc475521885484062fb149f1799ba668 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkFBOjE4MDJFRTozN0QxODkxOjM4ODYzMjY6Njk2ODUyNjgiLCJ2aXNpdG9yX2lkIjoiNDg1OTc3NTE0MTEwODk4NzkyIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | a8d053af7affd3425990ce7dfad66bbea16f0c4a5793694df572130b8d39f225 |
| hovercard-subject-tag | issue:1894455747 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/gitpython-developers/GitPython/1660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da7f03b64ef269e6cbdedbea77a527a1fd0e912aff8f363d47ea2e57e51e98a5/gitpython-developers/GitPython/issues/1660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da7f03b64ef269e6cbdedbea77a527a1fd0e912aff8f363d47ea2e57e51e98a5/gitpython-developers/GitPython/issues/1660 |
| og:image:alt | The force_release target in Makefile (which is also used by the release target after it attempts to check some things separate from this issue) had previously stopped after a failed attempt to buil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EliahKagan |
| hostname | github.com |
| expected-hostname | github.com |
| None | f16c57f41ed243e5b4dfe9b9bcd6828bd83080b1b6dbb4ff239bbe9745f12e0c |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfa7062cc6d4fe8fcb156bd33f4c97bd3b2470af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width