Skip to content

mingit: exclude the tzdata #633

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

Merged
merged 3 commits into from
Jul 15, 2025
Merged

mingit: exclude the tzdata #633

merged 3 commits into from
Jul 15, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented Jul 14, 2025

Since msys2/MINGW-packages#24750, the mingw-w64-gcc-libs package now has a hard dependency on mingw-w64-tzdata. That latter package contains, let's say, many files.

As a consequence, the 7z invocation to build MinGit would now fail like this:

Creating .zip archive
+ cd /
+ 7z a -mx9 [...]
release.sh: line 176: /mingw64/bin/7z: Argument list too long
Error: Process completed with exit code 126.

This is the underlying reason for the recent git-artifacts CI failures:

image

Since the new code that makes use of that tzdata explicitly comes with a fall-back to an internal database, let's just skip the tzdata when building MinGit.

@dscho dscho requested review from mjcheetham and rimrul July 14, 2025 20:48
@dscho dscho self-assigned this Jul 14, 2025
@dscho dscho marked this pull request as draft July 14, 2025 21:28
dscho added 3 commits July 14, 2025 23:58
In 53038d4 (ci: avoid building the installer multiple times,
2023-08-28), I added code to limit where the `installer` artifact is
built, but forgot to do that _before_ the `releaseable.txt` file is
shown.

Signed-off-by: Johannes Schindelin <[email protected]>
In 53038d4 (ci: avoid building the installer multiple times,
2023-08-28), I claimed that the MinGit artifact is already built in the
`sdk-artifacts` matrix.

That is only _kind_ of true: As part of building the `build-installers`
SDK artifact, there _is_ a part where the a minimal SDK is built, but
not MinGit.

Let's build MinGit again when code was touched that changes how it is
built.

Signed-off-by: Johannes Schindelin <[email protected]>
Since msys2/MINGW-packages#24750, the
`mingw-w64-gcc-libs` package now has a hard dependency on
`mingw-w64-tzdata`. That latter package contains, let's say, _many_
files.

As a consequence, the `7z` invocation to build MinGit would now fail
like this:

  Creating .zip archive
  + cd /
  + 7z a -mx9 [...]
  release.sh: line 176: /mingw64/bin/7z: Argument list too long
  Error: Process completed with exit code 126.

Since the new code that makes use of that tzdata explicitly comes with a
fall-back to an internal database, let's just skip the tzdata when
building MinGit.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho force-pushed the fix-mingit-builds branch from 971f56d to 682dfd7 Compare July 14, 2025 21:58
@dscho dscho marked this pull request as ready for review July 14, 2025 22:16
@dscho dscho merged commit 764ec50 into main Jul 15, 2025
21 checks passed
@dscho dscho deleted the fix-mingit-builds branch July 15, 2025 09:25
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