chore: remove committed binaries and scratch dirs; tighten .gitignore #1
Reference in New Issue
Block a user
Delete Branch "devin/1776538258-chore-gitignore-and-artifacts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
First PR in the 11-PR sequence to finish the explorer (see
explorer-monorepo-completion-prompt.md). This one is pure repo hygiene — no behaviour change.Changes
backend/bin/api-serverbackend/cmd(a binary despite the path looking like a directory)backend/api/rest/cmd/api-serverout/(Foundry build artifacts)cache/(Solidity cache)test-results/(Playwright).gitignoreso these paths — plusplaywright-report/,.playwright/, andcoverage/— don't creep back in.Why
Committed binaries bloat the repo, make diffs noisy, and hide what a build actually produces. Scratch dirs leak between contributors' machines and desync with the compiler/tooling versions they were produced on. Both classes belong in
.gitignoreand should be regenerated per build.Verification
git diff --statshows only.gitignorecontent + threeBindeletions + four small JSON deletions.backend/api/rest/cmd/main.goandbackend/indexer/main.go).Completion criterion advanced
Still outstanding in later PRs: secret purge from history, doc consolidation,
.gitmodulesdecision.- Remove committed Go binaries: backend/bin/api-server (~18 MB) backend/cmd (~18 MB) backend/api/rest/cmd/api-server (~18 MB) - Remove scratch / build output dirs from the repo: out/, cache/, test-results/ - Extend .gitignore to cover these paths plus playwright-report/ and coverage/ so they don't drift back in. Total artifact weight removed: ~54 MB of binaries + small scratch files.