Skip to content

chore: untrack Rust build artifacts, fix .gitignore target/ pattern - #62

Merged
meshackyaro merged 1 commit into
mainfrom
chore/untrack-rust-build-artifacts
Oct 26, 2026
Merged

meshackyaro merged 1 commit into
mainfrom
chore/untrack-rust-build-artifacts

Conversation

@meshackyaro

Copy link
Copy Markdown
Contributor

Summary

  • contracts/target/ (compiled Rust build output -- .rlib/.so/.rmeta files, ~1,390 files) was tracked in git because .gitignore anchored /target and /target-tiny at the repo root, one level above the actual contracts/target path.
  • Switches to unanchored target/ and target-tiny/ patterns and untracks the already-committed build output, so it stops growing further.
  • Does not rewrite history -- the ~200MB already baked into existing commits stays until a separate, coordinated history rewrite (git filter-repo/BFG + force-push) is scheduled, since this repo has active external contributors whose forks/clones would need to re-sync.

Test plan

  • CI (lint-and-build) passes with build artifacts removed from tracking
  • cargo build / contract build still works locally after this change (target/ is regenerated, just no longer tracked)

contracts/target/ (compiled .rlib/.so/.rmeta build output, ~1,390 files)
was tracked in git because .gitignore anchored /target and /target-tiny
at the repo root, one level above the actual contracts/target path.
Switching to unanchored target/ and target-tiny/ patterns and untracking
the already-committed build output stops it from growing further.

Note: this does not remove the ~200MB of build artifacts already baked
into git history -- that requires a separate history rewrite (git
filter-repo/BFG + force-push), which needs coordinated timing given
active external contributors on this repo.
@meshackyaro
meshackyaro merged commit 44bc80c into main Oct 26, 2026
2 checks passed
@meshackyaro
meshackyaro deleted the chore/untrack-rust-build-artifacts branch October 26, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant