Repository navigation
installer/portable: only ship docx2txt-rs anymore - #767
Merged
Merged
Conversation
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
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.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Due to msys2/MSYS2-packages#6920, Git for Windows' SDKs no longer include
docx2txt(replaced withdocx2txt-rs, which we will want to drop from the SDKs)For that reason, let's stop trying to include the original Perl version of
docx2txtaltogether, it was already forcefully removed from the Git for Windows SDKs (and replaced withdocx2txt-rs, which we do not actually want to use because it is still an MSYS package, we usemingw-w64-docx2txt-rsinstead).Since
make-file-list.shtries 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), wheremake-file-list.sh(run as part of making thebuild-installersSDK artifact) tries to installdocx2txt, fails because only an incompletegpgis 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.