Title: chore(roc): untrack 1.2 MB host archive linux-x64.a (#363) by dezren39 · Pull Request #366 · developing-today/code · GitHub
Open Graph Title: chore(roc): untrack 1.2 MB host archive linux-x64.a (#363) by dezren39 · Pull Request #366 · developing-today/code
X Title: chore(roc): untrack 1.2 MB host archive linux-x64.a (#363) by dezren39 · Pull Request #366 · developing-today/code
Description: Closes #363 Problem pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a — a 1,183,094-byte compiled static library (ar archive, blob a8a8540d) — was tracked in git even though the root .gitignore:6 rule **/*.a names exactly this file type. A tracked file is immune to the ignore rule, so every rebuild of the host library dirtied the tree and risked committing a machine-specific artifact. It was the only tracked .a repo-wide and the last compiled artifact in the tracked-but-ignored audit (the #353/#355/#358 class). Solution git rm the archive only — no .gitignore change is needed, the **/*.a rule already covers it. Add pkgs/roc/applications/hello/rust-basic-cli/README.md where a reader of the example will find it, documenting that Platform/linux-x64.a is generated, not tracked, and how to regenerate it: run roc build.roc in pkgs/roc/platforms/rust-basic-cli-template (its copy_host_lib copies the cargo-built libhost.a to platform/linux-x64.a; bundle.sh does the same for all targets), copy the archive into this app's Platform/, then run LINKER=legacy ./hello rust-basic-cli from pkgs/roc. (The roc/cargo toolchain is not available in the sweep environment, so the build itself was not re-run — the documented path is the template's own README Step 1 / build.roc flow, which is the second acceptance option.) Tracked-but-ignored audit — clean by decision After this change, git ls-files -ic --exclude-standard returns only six paths, all test.* files matched by root .gitignore's test.* rule, and all explicitly confirmed intentional source/test fixtures, not build outputs: pkgs/graph/test.go — small hand-written Badger test program (211 bytes) pkgs/hello/nix-prelude/hello-nix-renode/test.robot — Renode test script (767 bytes) pkgs/hello/nix-prelude/hello-nix-zip/test.txt — empty placeholder fixture pkgs/pavex/examples/realworld/api_server/configuration/test.yml — test server config, header says it is fine to commit pkgs/pavex/libs/pavex_cli/tests/ui_tests/route_parameters/route_parameters_happy_path/test.rs — UI test source projects/test.yaml — Argo CD AppProject manifest named test No compiled artifact remains in the tracked-but-ignored list. Verification (on branch, base main 3ee06239) git ls-files no longer lists the archive; it was the only tracked *.a. Recreating a dummy Platform/linux-x64.a leaves git status clean for that path; git check-ignore -v reports .gitignore:6:**/*.a. Diff is exactly 2 files: the archive deleted (1,183,094 bytes) and the new README added. Single-repo: the roc tree and this vendored platform live only in this repo; no cross-repo port is owed. Need help on this PR? Tag @codesmith-bot with what you need. Summary by CodeRabbit Documentation Added setup and usage instructions for the Rust basic CLI example, including how to prepare the required host archive for Linux x86-64 and other targets. Clarified that rebuilding replaces the local archive without marking the working tree as changed.
Open Graph Description: Closes #363 Problem pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a — a 1,183,094-byte compiled static library (ar archive, blob a8a8540d) — was tracked in git even though the root ...
X Description: Closes #363 Problem pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a — a 1,183,094-byte compiled static library (ar archive, blob a8a8540d) — was tracked in git even though the root ...
Opengraph URL: https://github.com/developing-today/code/pull/366
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b6c78a63-8e58-7019-24b5-5dce0c4d6d17 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8448:261BEA:7715CB:9DFDD0:6B062C82 |
| html-safe-nonce | e292d53a5d6c61735544a5b72c2cee9b562c0cc0c5298acf6bea6c615cedf377 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDQ4OjI2MUJFQTo3NzE1Q0I6OURGREQwOjZCMDYyQzgyIiwidmlzaXRvcl9pZCI6IjE4MDA1MDY1NDM0NjU0NDI0MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4790a699fc1adc64060f4de5bc4b8677cc481b343b370e8ec0fd146b6f07a9d4 |
| hovercard-subject-tag | pull_request:4926817108 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/developing-today/code/pull/366/files |
| twitter:image | https://avatars.githubusercontent.com/u/11225574?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11225574?s=400&v=4 |
| og:image:alt | Closes #363 Problem pkgs/roc/applications/hello/rust-basic-cli/Platform/linux-x64.a — a 1,183,094-byte compiled static library (ar archive, blob a8a8540d) — was tracked in git even though the root ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width