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

please.sh build-mingw-w64-git: optionally reset pkgrel #534

Merged

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 20, 2023

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).

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>
@dscho dscho requested a review from rimrul November 20, 2023 14:32
@dscho dscho self-assigned this Nov 20, 2023
dscho added a commit to dscho/git-for-windows-automation that referenced this pull request Nov 20, 2023
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/'
Copy link
Member

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]*$

Copy link
Member Author

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]*?

Copy link
Member Author

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.

@dscho dscho merged commit cb96431 into git-for-windows:main Nov 20, 2023
6 checks passed
@dscho dscho deleted the optionally-reset-mingw-w64-git-pkgrel branch November 20, 2023 17:20
ammyk9 pushed a commit to ammyk9/git-for-windows-automation that referenced this pull request Aug 8, 2024
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>
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

Successfully merging this pull request may close these issues.

2 participants