Title: pkgs/roc: 1.2 MB compiled host archive (applications/hello/rust-basic-cli/Platform/linux-x64.a) still tracked in git despite root .gitignore **/*.a · Issue #363 · developing-today/code · GitHub
Open Graph Title: pkgs/roc: 1.2 MB compiled host archive (applications/hello/rust-basic-cli/Platform/linux-x64.a) still tracked in git despite root .gitignore **/*.a · Issue #363 · developing-today/code
X Title: pkgs/roc: 1.2 MB compiled host archive (applications/hello/rust-basic-cli/Platform/linux-x64.a) still tracked in git despite root .gitignore **/*.a · Issue #363 · developing-today/code
Description: 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, #...
Open Graph Description: 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 ...
X Description: 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 des...
Opengraph URL: https://github.com/developing-today/code/issues/363
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pkgs/roc: 1.2 MB compiled host archive (applications/hello/rust-basic-cli/Platform/linux-x64.a) still tracked in git despite root .gitignore **/*.a","articleBody":"## Finding (from PR diff review of #360)\n\nPR #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:\n\n**`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.\n\n## Evidence\n\n- `git ls-tree -r --name-only origin/main | grep '\\.a$'` → this is the **only** `.a` tracked repo-wide.\n- `git check-ignore -v --no-index pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a` → `.gitignore:6:**/*.a` matches it.\n- Blob on `main`: sha `a8a8540d0a630060dfc1f5653ec1fa5299f1b4b5`, size 1,183,094 bytes, `file` reports \"current ar archive\".\n- 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.\n- 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.\n- 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.\n\n## Why it matters\n\nSame 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.\n\n## Acceptance criteria\n\n- [ ] `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).\n- [ ] 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.\n- [ ] 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.\n\nFound by the pr-diff-review job while reviewing https://github.com/developing-today/code/pull/360 (commit bf731b4024cf0040014045b5c3ca3b033569777e).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T17:57:32Z","url":"https://github.com/developing-today/code/issues/363"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3abb89be-d4c3-d8e0-e4e7-36fbd5ade838 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB42:572F9:6AAD44:8F1A25:6B062C16 |
| html-safe-nonce | 8949e2622ee61f61d342b9b3eaf27c0943c3b8f40979973315202cc5440d6575 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjQyOjU3MkY5OjZBQUQ0NDo4RjFBMjU6NkIwNjJDMTYiLCJ2aXNpdG9yX2lkIjoiNjI5OTY3NTQ2OTY4ODQ4MjgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0436dd3fd75eb2f814409565105d912a40e555dba2aae9349b89cc8a3a6508fd |
| hovercard-subject-tag | issue:5928863276 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/363/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a839b476905132220e821bf5ac465cea1eb451f4e93af37e22dc65aa94b38d4c/developing-today/code/issues/363 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a839b476905132220e821bf5ac465cea1eb451f4e93af37e22dc65aa94b38d4c/developing-today/code/issues/363 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width