-
Notifications
You must be signed in to change notification settings - Fork 612
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
please.sh build-mingw-w64-git: optionally reset pkgrel
#534
please.sh build-mingw-w64-git: optionally reset pkgrel
#534
Conversation
Typically, when we build new Git (pre-)releases, we want the `pkgrel` to be reset to 1, if it has been incremented in the meantime. Let's add an option for `please.sh`'s sub-command that is used in the automation over at https://github.com/git-for-windows/git-for-windows-automation/blob/HEAD/.github/workflows/git-artifacts.yml and then adjust that workflow to use it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In case some update was necessary between releases, we need to increment the `pkgrel` so that we can deploy new `mingw-w64-git` package versions. However, the next release should reset that `pkgrel` back to 1. Noticed by Matthias Aßhauer in git-for-windows/git#4692 (comment). The script that is used to build `mingw-w64-git` has been adjusted accordingly in git-for-windows/build-extra#534 and with this change, we use the new `--reset-pkgrel` option. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@@ -3441,6 +3441,9 @@ build_mingw_w64_git () { # [--only-i686] [--only-x86_64] [--only-aarch64] [--ski | |||
--skip-doc-html) | |||
sed_makepkg_e="$sed_makepkg_e"' -e s/"\${MINGW_PACKAGE_PREFIX}-\${_realname}-doc-html"//' | |||
;; | |||
--reset-pkgrel) | |||
sed_makepkg_e="$sed_makepkg_e"' -e s/^pkgrel=[0-9][0-9]*$/pkgrel=1/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably be ^pkgrel=[1-9][0-9]*$
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I used to sometimes use pkgrel=0
to prepare packages for new versions without actually releasing them yet... Maybe we can leave it at [0-9][0-9]*
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge this now, should we agree that the more stringent pattern is needed, I can always change it as a follow-up after v2.43.0 is released.
In case some update was necessary between releases, we need to increment the `pkgrel` so that we can deploy new `mingw-w64-git` package versions. However, the next release should reset that `pkgrel` back to 1. Noticed by Matthias Aßhauer in git-for-windows/git#4692 (comment). The script that is used to build `mingw-w64-git` has been adjusted accordingly in git-for-windows/build-extra#534 and with this change, we use the new `--reset-pkgrel` option. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As @rimrul noticed, between v2.43.0-rc1 and v2.43.0-rc2 we did not reset
pkgrel=1
.This is part 1 of the two-parter to address this (and I plan on merging this today, in time for v2.43.0 final).