Skip to content

refactor(image): evict redundant CPython 3.13 via gitMinimal and unwrapped actionlint - #1126

Merged
c-vigo merged 1 commit into
devfrom
feature/1107-evict-python313
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/1107-evict-python313

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

The image carried a second CPython interpreter (python3-3.13.13, 127 MiB) that
the chosen 3.14 toolchain never uses, held by four anchors. #1105 (bandit) and
#1106 (criu) removed two; this PR removes the last two and completes the
eviction:

  • full git → gitMinimal (stock nixpkgs attr, cached — the exact
    derivation bandit's gitpython used to pull). Drops the git-p4/python-helper
    anchor plus git-doc. Loses send-email/svn/p4/gitk/git help man
    pages — declared non-contract in [EPIC] Slim the devcontainer image (~680 MiB, mode-neutral cuts) #1103 (semver:minor). Builtin-C porcelain
    (log, commit, rebase -i, add -p, worktrees) and SSH signing unaffected.
  • actionlint → overrideAttrs without the pyflakes wrapper (.override
    only exposes python3Packages, so the wrapper's postInstall is rewritten to
    wrap with shellcheck only). Loses inline-python lint on workflow run:
    steps; shellcheck-backed lint and the man page stay.

Both swaps follow the image-scoped filter pattern from #1106 — devTools (the
SSoT) is untouched, so the dev-shell keeps full git and stock actionlint.

Also fixes the now-false provenance notes in .vulnixignore: the perl 5.42
entries claimed perl is in-closure "via git's perl-based subcommands"; after this
PR its sole anchor is neovim → wl-clipboard → xdg-utils (the #1108 chain). CVE
ignore lines themselves unchanged (perl is still present until #1108).

Evidence (independently re-verified)

  • Closure: 1,914,744,512 → 1,758,754,952 bytes (−148.8 MiB, 395 → 378 paths)
  • nix path-info -r | grep -E 'python3-3.13|python3.13-' → EMPTY — the
    issue's hard gate
  • git: only git-minimal-2.54.0 in the closure; git version 2.54.0;
    git-p4 present only as the upstream "not built with python" stub
  • actionlint 1.7.12 runs; lints .github/workflows/ci.yml clean; its closure
    contains shellcheck and zero python paths
  • gettext stays (still linked by gitMinimal for i18n) — the changelog states
    this honestly rather than claiming it dropped
  • No test changes needed: test_image.py asserts only git version (identical
    string for gitMinimal); no send-email/pyflakes assertions exist
  • Full hook suite green (prek run --all-files, exit 0)

Part of epic #1103 (sub-issue 4/5). Unblocks #1108 (perl eviction — git no
longer anchors perl; only the neovim chain remains).

Closes #1107

…apped actionlint

Swap the image's full git for gitMinimal and drop actionlint's optional
python3.13-pyflakes wrapper. With bandit (#1105) and criu (#1106) already
gone, these were the last two anchors of the redundant python3-3.13.13
interpreter; the image closure drops ~149 MiB (interpreter + git-doc).
Both swaps are image-only (builtins.filter in imageTools) — the dev-shell
keeps full git and stock actionlint via devTools. gettext stays (linked by
gitMinimal). Corrects the .vulnixignore perl provenance (now anchored by
neovim -> wl-clipboard -> xdg-utils, not git).

Refs: #1107
@c-vigo
c-vigo enabled auto-merge July 15, 2026 14:02
@c-vigo
c-vigo merged commit b7f5963 into dev Jul 15, 2026
15 checks passed
@c-vigo
c-vigo deleted the feature/1107-evict-python313 branch July 15, 2026 14:09
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