Repository navigation
chore: untrack Rust build artifacts, fix .gitignore target/ pattern - #62
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
contracts/target/(compiled Rust build output --.rlib/.so/.rmetafiles, ~1,390 files) was tracked in git because.gitignoreanchored/targetand/target-tinyat the repo root, one level above the actualcontracts/targetpath.target/andtarget-tiny/patterns and untracks the already-committed build output, so it stops growing further.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
lint-and-build) passes with build artifacts removed from trackingcargo build/ contract build still works locally after this change (target/ is regenerated, just no longer tracked)