Re: [PATCH 2/4] ci(gitlab,windows): preserve exclusions during dependency setup
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Sep 24, 2026, 11:21 UTC
- Message-ID
- <arUH0v3rdq6lzriE@pks.im>
- In-Reply-To
- <8855c25128d7bd91bd6514a259ef8165f2fd81ac.1789819933.git.gitgitgadget@gmail.com>
On Sat, Sep 19, 2026 at 12:12:11PM +0000, Johannes Schindelin via GitGitGadget wrote:
Show 8 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de> > > Creating .git/info/exclude as a file with `New-Item` and `-Force` > truncates existing contents. > > When install-dependencies.ps1 follows install-sdk.ps1, this discards > the latter's /git-sdk exclusion and causes ci/lib.sh to reject SDK > files as unignored build artifacts.
Okay, this confirms that it's indeed the plan to start calling this script for MinGW builds, too.
Show 13 quoted lines
> diff --git a/ci/install-dependencies.ps1 b/ci/install-dependencies.ps1
> index 8c68fb0cfc..f6868dc670 100755
> --- a/ci/install-dependencies.ps1
> +++ b/ci/install-dependencies.ps1
> @@ -12,7 +12,9 @@ $RustVersion = '1.96.0'
>
> New-Item -Path $DownloadDirectory -ItemType Directory -Force | Out-Null
> New-Item -Path .git/info -ItemType Directory -Force | Out-Null
> -New-Item -Path .git/info/exclude -ItemType File -Force | Out-Null
> +if (-not (Test-Path .git/info/exclude)) {
> + New-Item -Path .git/info/exclude -ItemType File | Out-Null
> +}
> Add-Content -Path .git/info/exclude -Value "/$DownloadDirectory"Makes sense.
Patrick