Finding (from PR diff review of #360)
PR #360 removed the tracked 9 MB build ELF from pkgs/roc/platforms/rust-minimal-cli/ — the third instance of the "compiled build output tracked in git despite an ignore rule naming it" class (#353, #355, #358). Reviewing #360 against current main shows one more instance of the same class still live:
pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a — a 1,183,094-byte compiled static library (ar archive) is tracked in git on main, even though the root .gitignore line 6 is **/*.a, which names exactly this file type. A tracked file is immune to the ignore rule, so every rebuild of the host library dirties the tree / risks committing a machine-specific artifact.
Evidence
git ls-tree -r --name-only origin/main | grep '\.a$' → this is the only .a tracked repo-wide.
git check-ignore -v --no-index pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a → .gitignore:6:**/*.a matches it.
- Blob on
main: sha a8a8540d0a630060dfc1f5653ec1fa5299f1b4b5, size 1,183,094 bytes, file reports "current ar archive".
- The archive is a build output, not a source:
pkgs/roc/platforms/rust-basic-cli-template/bundle.sh:15 produces it (cp target/x86_64-unknown-linux-gnu/release/libhost.a platform/linux-x64.a), and the template platform does not track its own copy — only this vendored app copy is tracked.
- It entered the tree in bulk commit
e1c74ef6 (2025-07-07, "format"), consistent with accidental sweeping-in rather than a deliberate decision to ship the archive.
- Full audit of the class on current
main: git ls-files -ic --exclude-standard returns 7 tracked-but-ignored paths. The other 6 are small test.* text fixtures matched by root .gitignore:117 test.* and look intentional; this .a is the only compiled artifact among them.
Why it matters
Same harm as #353/#355/#358: a platform-specific compiled artifact bloats the repo, goes stale silently, and — because it is tracked — masks the ignore rule that was written to keep it out. The class has now recurred four times; removing this instance completes the cleanup #360's audit started.
Acceptance criteria
-
pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a is no longer tracked (git ls-files does not list it); no .gitignore change is needed (the **/*.a rule already covers it).
- The hello/rust-basic-cli example can still be built/run after regenerating the host archive via the platform build (
bundle.sh / build.roc path), or the regeneration step is documented where a reader of the example will find it.
- The remaining tracked-but-ignored
test.* fixtures are explicitly confirmed intentional (note in the closing PR), so the tracked-but-ignored audit comes back clean-by-decision, not by omission.
Found by the pr-diff-review job while reviewing #360 (commit bf731b4).