Title: pkgs/launcher: a 16 MB compiled binary is tracked in git, and no pkgs Go module's build output is gitignored · Issue #353 · developing-today/code · GitHub
Open Graph Title: pkgs/launcher: a 16 MB compiled binary is tracked in git, and no pkgs Go module's build output is gitignored · Issue #353 · developing-today/code
X Title: pkgs/launcher: a 16 MB compiled binary is tracked in git, and no pkgs Go module's build output is gitignored · Issue #353 · developing-today/code
Description: Problem pkgs/launcher/launcher is a compiled binary tracked in git, and no pkgs/ Go module's local build output is covered by .gitignore (except identity), so building these modules dirties the working tree — and in launcher's case overw...
Open Graph Description: Problem pkgs/launcher/launcher is a compiled binary tracked in git, and no pkgs/ Go module's local build output is covered by .gitignore (except identity), so building these modules dirties the wor...
X Description: Problem pkgs/launcher/launcher is a compiled binary tracked in git, and no pkgs/ Go module's local build output is covered by .gitignore (except identity), so building these modules dirties the...
Opengraph URL: https://github.com/developing-today/code/issues/353
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pkgs/launcher: a 16 MB compiled binary is tracked in git, and no pkgs Go module's build output is gitignored","articleBody":"## Problem\n\n`pkgs/launcher/launcher` is a compiled binary tracked in git, and no `pkgs/` Go module's local build output is covered by `.gitignore` (except identity), so building these modules dirties the working tree — and in launcher's case overwrites a tracked 16 MB artifact.\n\n## Evidence (verified on main `0fccf414`)\n\n- `git ls-tree` shows `pkgs/launcher/launcher` as a tracked blob of **16,351,700 bytes**: `ELF 64-bit LSB executable, x86-64, Go BuildID=..., with debug_info, not stripped`. It was committed in `ef6759b4` / `493f2244` and nothing in the tree references the path (repo-wide grep for `launcher/launcher` / `./launcher` outside the file itself: no hits). The source is `pkgs/launcher/main.go`; the binary is pure build output.\n- Reproduced the hazard: in a clean worktree of main, `go build .` inside `pkgs/launcher` changes the file's md5 (`7c1922c6…` → `78605330…`) and `git status` reports ` M pkgs/launcher/launcher`. The long-lived dev clone already shows exactly this modification, plus untracked `pkgs/chat/chat`, `pkgs/database/database`, `pkgs/import/import` from local builds.\n- `git check-ignore` on each module's natural build output (`go build` in the module dir writes an executable named after the directory): only `pkgs/identity/identity` is ignored (via `pkgs/identity/.gitignore:19`). `chat`, `database`, `graph`, `import`, `launcher`, `map`, `tea` outputs are **not** ignored.\n- Since #342/#343 these modules are built routinely (go-modules-build.yml, map-build.yml, identity-build.yml run `go build ./...` in CI, which discards output — but the natural local command `go build` / `go build .` writes the binary into the module directory), so the noise recurs for every contributor, and a careless `git add -A` re-commits a fresh 16 MB binary.\n\n## Why it matters\n\n- 16 MB of binary bloat in every clone, for an artifact anyone can rebuild from `main.go` in seconds.\n- A tracked build artifact that silently changes on every local build invites accidental recommit of a stale/platform-specific binary and creates phantom diffs in unrelated work (already observed in the dev clone).\n- Untracked build outputs for the other seven modules pollute `git status` and risk the same accidental commit.\n\n## Suggested fix / acceptance criteria\n\n- [ ] `pkgs/launcher/launcher` is no longer tracked (`git ls-files pkgs/launcher/launcher` is empty); the module still builds from source.\n- [ ] For every Go module under `pkgs/` with a root `package main` (chat, database, graph, identity, import, launcher, map, tea), `git check-ignore pkgs/\u003cmodule>/\u003cmodule>` succeeds — e.g. a `/name` entry in the module's own `.gitignore`, following the existing precedents (`pkgs/identity/.gitignore`'s `identity` entry; the `/gomod2nix-template` anchored style in sibling modules). Modules without a `.gitignore` (chat, database, tea) gain one.\n- [ ] After running `go build .` in each of those modules, `git status --porcelain` is clean.\n- [ ] No source or CI changes are needed; go-modules-build / map-build / identity-build stay green.\n\nSingle-repo: the `pkgs/` Go modules exist only in this repo.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T12:57:48Z","url":"https://github.com/developing-today/code/issues/353"}
| 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:c1a437d8-cfac-79de-e9f9-f7c0241ab711 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D7A:DA7D9:6E2D25:92A89E:6B062A30 |
| html-safe-nonce | 63306af82d938118566f24b199ad9d7cc130259f9895e070831763f0af8835de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDdBOkRBN0Q5OjZFMkQyNTo5MkE4OUU6NkIwNjJBMzAiLCJ2aXNpdG9yX2lkIjoiNTAwMTkwNDg3ODc2NDA0MjgwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c688d434f509196144cb90a50d019ccc392e67b54a35b5fc8cc56c84eba46154 |
| hovercard-subject-tag | issue:5924283917 |
| 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/353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76e0f5d6b17e6e574ea239becacf8b3f3afedccd206f112594dc25856c74f99b/developing-today/code/issues/353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76e0f5d6b17e6e574ea239becacf8b3f3afedccd206f112594dc25856c74f99b/developing-today/code/issues/353 |
| og:image:alt | Problem pkgs/launcher/launcher is a compiled binary tracked in git, and no pkgs/ Go module's local build output is covered by .gitignore (except identity), so building these modules dirties the wor... |
| 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