Skip to content

installer/portable: only ship docx2txt-rs anymore - #767

Merged
dscho merged 1 commit into
mainfrom
only-docx2txt-rs-now
Nov 5, 2026
Merged

dscho merged 1 commit into
mainfrom
only-docx2txt-rs-now

Conversation

@dscho

@dscho dscho commented Nov 5, 2026

Copy link
Copy Markdown
Member

Due to msys2/MSYS2-packages#6920, Git for Windows' SDKs no longer include docx2txt (replaced with docx2txt-rs, which we will want to drop from the SDKs)

For that reason, let's stop trying to include the original Perl version of docx2txt altogether, it was already forcefully removed from the Git for Windows SDKs (and replaced with docx2txt-rs, which we do not actually want to use because it is still an MSYS package, we use mingw-w64-docx2txt-rs instead).

Since make-file-list.sh tries to install that package if it is missing, this PR works around the problems of the current GitHub workflows in Git for Windows' SDKs (e.g. here), where make-file-list.sh (run as part of making the build-installers SDK artifact) tries to install docx2txt, fails because only an incomplete gpg is present in the then-current sparse checkout of the SDK, and results in a highly incomplete SDK artifact that then fails to pass subsequent steps successfully.

Since git-sdk-64's 768af088f03 (Update 29 packages, 2026-11-05), the
`docx2txt-rs` package, a Rust rewrite of `docx2txt`, replaced the
latter, and they cannot be installed together anymore.

Let's stop trying to (install and) include the original Perl version of
`docx2txt` altogether, it was already forcefully removed from the Git
for Windows SDKs (and replaced with `docx2txt-rs`, which we do not
actually want to use because it is still an MSYS package, we use
`mingw-w64-docx2txt-rs` instead).

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho self-assigned this Nov 5, 2026
@dscho
dscho merged commit d12e2ff into main Nov 5, 2026
22 checks passed
@dscho
dscho deleted the only-docx2txt-rs-now branch November 5, 2026 16:43
dscho added a commit that referenced this pull request Nov 7, 2026
`make-file-list.sh` is the single source of truth for which files end up
in each Git for Windows installer artifact. While every caller guards
the invocation with `|| die "Could not generate file list"`, the script
reports success even when it had failed executing `pacman`, so a
truncated file list was handed to the packaging steps as if it were
complete.

This is not theoretical. In the `build-installers` SDK artifact build, a
recent package replacement (`docx2txt` to `docx2txt-rs`) sent the script
down its `pacman -Sy` path for the first time in a long while. See
#767 for the fix that
makes that `pacman -Sy` call dormant again.

That code path path failed with `GPGME error: Invalid crypto engine`,
because the sparse checkout of the SDK is too incomplete to actually run
GPG. Instead of failing, the script produced a heavily incomplete list
and exited with status 0 (pretending success).

Let's check carefully when the `pacman` invocations fail.

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit that referenced this pull request Nov 9, 2026
`make-file-list.sh` is the single source of truth for which files end up
in each Git for Windows installer artifact. Under certain circumstances
that should _not_ happen, the script tries to install Pacman packages
(see #767 for a
recent example).

With Git for Windows' current automation (e.g. [the `ci-artifacts`
workflow](https://github.com/git-for-windows/git-sdk-64/actions/workflows/ci-artifacts.yml)
that produces the `build-installers` artifact), that fails because the
script is run in a highly-incomplete sparse checkout (its job in that
setting is, after all, to _make_ that incomplete sparse checkout
complete). Therefore that `pacman` invocation _had_ to fail. But the
script continued as if everything were dandy, and produced an incomplete
`build-installers` artifact.

Let's fix the script so that it fails when that `pacman` invocation
failed, as was my original intention.

Since this PR build would fail otherwise, let's also adjust the
`check-for-missing-dlls` script to accommodate for Git for Windows'
switch from home-built `libopenssl` to the upstream MSYS2 version.

Finally, since zlib changed their DLL name (in a way where the current
`git.exe` still links to `zlib1.dll`, and that works because it is still
installed, but a newly-built `git.exe` will link to `libz-1.dll`, and
that DLL is installed, too), which requires yet another patch to adapt
the `make-file-list` and `check-for-missing-dlls` scripts.
@dscho dscho mentioned this pull request Nov 12, 2026
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