Skip to content

msys2-runtime: update to 3.6.9-1#285

Merged
dscho merged 2 commits intomainfrom
msys2-runtime-6abc3bb22b40096e4a61b02e260e6934d82539b9
Apr 25, 2026
Merged

msys2-runtime: update to 3.6.9-1#285
dscho merged 2 commits intomainfrom
msys2-runtime-6abc3bb22b40096e4a61b02e260e6934d82539b9

Conversation

@gitforwindowshelper
Copy link
Copy Markdown

This corresponds to git-for-windows/msys2-runtime#130

@dscho dscho marked this pull request as ready for review April 24, 2026 07:59
dscho added 2 commits April 25, 2026 00:26
In the merging-rebase topology of the msys2-runtime, `git describe`
picks the wrong base tag. For the current HEAD (based on Cygwin
3.6.9), `describe --match='cygwin-[0-9]*'` reports
`cygwin-3.6.7-21396-g...` even though `cygwin-3.6.9` is a
closer ancestor (21368 commits vs 21396). This causes line 63 of
`update-patches.sh` to overwrite `pkgver` to `3.6.7` when it
should be `3.6.9`.

Replace `describe` with `for-each-ref --format='%(ahead-behind)'`
sorted by distance, which correctly identifies the closest ancestor
tag by commit count. The `sed` filter ensures only clean release
tags (no `-dev` suffixes) are matched.

Note: the `update-scripts/version/msys2-runtime` script in
git-for-windows-automation has the same `describe` bug and will
need a similar fix.

Assisted-by: Claude Opus 4.6
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the msys2-runtime-6abc3bb22b40096e4a61b02e260e6934d82539b9 branch from b68467f to 324dfb4 Compare April 24, 2026 22:27
@dscho dscho changed the title msys2-runtime: update to 3.6.7-5 msys2-runtime: update to 3.6.9-1 Apr 24, 2026
@dscho
Copy link
Copy Markdown
Member

dscho commented Apr 25, 2026

/deploy

The workflow run was started.

@dscho dscho merged commit 9d0c7a8 into main Apr 25, 2026
4 checks passed
@dscho dscho deleted the msys2-runtime-6abc3bb22b40096e4a61b02e260e6934d82539b9 branch April 25, 2026 10:59
dscho added a commit to git-for-windows/git-for-windows-automation that referenced this pull request Apr 28, 2026
When I tried to `/open-pr` [the MSYS2-packages PR to update to Cygwin
runtime
v3.6.9](git-for-windows/MSYS2-packages#285), it
once again failed to determine the correct version. Instead of 3.6.9-1,
it thought that I wanted to deploy 3.6.7-5.

The fix requires
git-for-windows/MSYS2-packages@01bfb78,
and the corresponding change in `git-for-windows-automation`. This PR
sports that change, along with two more fixes for issues I noticed while
trying to reproduce the original issue.
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.

1 participant