Commit bbe37ee
authored
The recent change in 304b5f8 (please.sh build-mingw-w64-git: configure
the editor explicitly, 2026-03-24) sets `_DEFAULT_EDITOR=vim` when
building the `mingw-w64-git` package. The MINGW-packages PKGBUILD uses
this variable for two purposes: configuring Git's default editor at
build time, and adding the corresponding package as a hard dependency.
As a consequence, `pactree` now resolves `vim` as a transitive
dependency of `mingw-w64-x86_64-git`. The `vim` package contributes
2,312 files (mostly syntax highlighting under `usr/share/vim/`), adding
roughly 93 KB to the argument string that `release.sh` passes to `7z` on
line 176. The total command line reaches about 104 KB, far exceeding the
~32 KB `ARG_MAX` limit on MSYS2, and `7z` fails with \"Argument list too
long\", as seen in
https://github.com/git-for-windows/git-sdk-64/actions/runs/23514237228/job/68444863860.
MinGit is intentionally minimal and has no use for an interactive
editor. This excludes both `vim` and `nano` (the MSYS2 default editor)
from the `MINIMAL_GIT` package set so that neither can inflate the file
list, regardless of which `_DEFAULT_EDITOR` value is configured.
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | | - | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
0 commit comments