Repository navigation
chore: ignore build artifacts - #6
Merged
Merged
Conversation
.gitignore covered only *.log, so a `git add -A` in a built checkout stages the whole Rust target/ tree — ~5k files including a ~120 MB debug binary. Add the generated directories: /target, and the UI's node_modules/ and dist/ (ui/ tracks only index.html, package.json and package-lock.json; dist/ is produced by the npm build that `--features ui` consumes). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
avocadoali
approved these changes
Aug 17, 2026
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.
.gitignorecurrently contains a single line,*.log. So in a checkout that has been built,git add -Astages the entire Rusttarget/tree — about 5k files including a ~120 MB debug binary.This bit me while preparing #5: the first commit swept in
target/debug/labctl, and I only noticed because GitHub happened to be down when I tried to push.Adds the generated directories:
/target— cargo build outputui/node_modules/,ui/dist/— the npm build;ui/tracks onlyindex.html,package.jsonandpackage-lock.json, anddist/is what--features uiconsumes at build timeVerified with
git check-ignore -vthat a probe file in each of the three paths is matched, and thatgit statusis clean in a built checkout.Split out of #5 to keep that one single-concern.
🤖 Generated with Claude Code