Skip to content

Stop tracking build/ artifacts and tighten .gitignore - #41

Merged
srichs merged 1 commit into
mainfrom
claude/veracrypt-optional-sudo-itvn9f
Aug 8, 2026
Merged

Stop tracking build/ artifacts and tighten .gitignore#41
srichs merged 1 commit into
mainfrom
claude/veracrypt-optional-sudo-itvn9f

Conversation

@srichs

@srichs srichs commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

Removes generated build artifacts from source control and closes the .gitignore gap that let them in.

Problem

The build/ directory (setuptools' python -m build output) was partially committed — three files were tracked:

build/lib/veracrypt/__about__.py
build/lib/veracrypt/__init__.py
build/lib/veracrypt/veracrypt.py

Because they're generated, they had already drifted from source: build/lib/veracrypt/__about__.py still read __version__ = "0.1.0" while src/veracrypt/__about__.py is 0.2.0. Committed build output like this is noise in diffs and actively misleading.

Changes

  • git rm -r --cached build/ — stop tracking the three artifacts (working copy untouched; the dir is regenerated by python -m build).
  • .gitignore:
    • Add build/ so the artifacts never return.
    • Tighten distdist/ and src/python_veracrypt.egg-info*.egg-info/ (match by directory / any egg-info location rather than one hardcoded path).

Verification

$ git check-ignore build/ dist/ src/python_veracrypt.egg-info
build/
dist/
src/python_veracrypt.egg-info

No source, test, or packaging-config files are affected — this is purely artifact cleanup.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KmtFTMrCghkkNXAkvdXKS2


Generated by Claude Code

The build/ directory holds regenerated output of `python -m build`
(setuptools' build lib), but three copies were committed and had
drifted from source (build/lib/veracrypt/__about__.py still read
0.1.0 while src is 0.2.0). Untrack them and ignore build/ going
forward so generated artifacts never land in source control.

Also tighten two existing rules to match by directory rather than a
single hardcoded path:
- dist -> dist/
- src/python_veracrypt.egg-info -> *.egg-info/

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmtFTMrCghkkNXAkvdXKS2
@srichs
srichs merged commit 55e9323 into main Aug 8, 2026
9 checks passed
@srichs
srichs deleted the claude/veracrypt-optional-sudo-itvn9f branch August 8, 2026 21:43
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.

2 participants