Skip to content

Commit ed0213b

Browse files
committed
minimal-sdk: include stat.exe, to support the Coverity Pipeline
At https://dev.azure.com/Git-for-Windows/git/_build?definitionId=35, Git for Windows maintains automation that submits builds to Coverity for security scanning. We just switched that Pipeline to use a minimal SDK (because it really does not need to spend 4 minutes, 500GB worth of downloaded Git objects and 2GB worth of disk space, just to compile Git and pre-analyze it for Coverity). Among other problems, this uncovered the fact that the pretty basic `stat.exe` utility was not included in the minimal SDK. Now, Git's test suite seems to be fine, probably because 1) it runs via Bash, which has `stat` as a built-in, or 2) errors might be ignored or misinterpreted. But let's just include `stat` in minimal SDK. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b58ad75 commit ed0213b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci-artifacts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,7 @@ jobs:
141141
142142
gcc -Wall -g -O2 -shared -o sample.dll dll.c || exit 1
143143
ls -la
144+
145+
# stat works
146+
test "stat is /usr/bin/stat" = "$(type stat)" || exit 1
147+
stat /usr/bin/stat.exe || exit 1

.sparse/minimal-sdk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@
257257
/usr/bin/head.exe
258258
/usr/bin/rmdir.exe
259259
/usr/bin/setfacl.exe
260+
/usr/bin/stat.exe
260261
/usr/bin/sleep.exe
261262
/usr/bin/tail.exe
262263
/usr/bin/tar.exe

0 commit comments

Comments
 (0)