Skip to content

Commit b39acbf

Browse files
Add temporary CI probe for dugite git-core symlink count
1 parent 2cc395b commit b39acbf

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ jobs:
2727
cache: 'pnpm'
2828
- name: Install dependencies
2929
run: pnpm install --frozen-lockfile
30+
# Temporary diagnostic: dugite ships its git-core commands as symlinks to
31+
# one git binary. A healthy install keeps ~145 symlinks. If the toolchain
32+
# dereferences them into full copies the git dir grows from ~70MB to
33+
# ~580MB and the packaged macOS app roughly doubles. Prints the counts so
34+
# we can see which platform and which action version breaks it. Never
35+
# fails the build.
36+
- name: Probe dugite git-core symlinks
37+
shell: bash
38+
continue-on-error: true
39+
run: |
40+
dir=$(find node_modules/.pnpm -type d -path '*dugite*/git/libexec/git-core' 2>/dev/null | head -1)
41+
if [ -z "$dir" ]; then echo "dugite git-core dir not found"; exit 0; fi
42+
echo "git-core dir: $dir"
43+
echo "symlinks: $(find "$dir" -type l 2>/dev/null | wc -l)"
44+
echo "files: $(find "$dir" -type f 2>/dev/null | wc -l)"
45+
du -sh "$(dirname "$(dirname "$dir")")" 2>/dev/null || true
3046
- name: Run lint, check types and formatting
3147
run: pnpm run lint && pnpm run check-types && pnpm run check-format
3248
# - name: Identify misconfigurations and security anti-patterns

0 commit comments

Comments
 (0)