Skip to content

dev-clean keeps finished programs in a shared target folder - #621

Merged
BattermanZ merged 1 commit into
devfrom
fix/dev-clean-keeps-binaries
Nov 16, 2026
Merged

BattermanZ merged 1 commit into
devfrom
fix/dev-clean-keeps-binaries

Conversation

@BattermanZ

Copy link
Copy Markdown
Member

Closes #565

just dev-clean deleted the whole cargo target folder. On a machine where CARGO_TARGET_DIR is shared by several projects, that removed every project's finished programs, and just dev-status recommends the recipe once the folder passes 20 GB.

Now it deletes only cargo's intermediate folders (deps, build, incremental, .fingerprint, examples) in each profile folder cargo marked with .cargo-lock, at <target>/<profile> or <target>/<triple>/<profile>. Finished programs and everything outside the profiles stay. A second run says there is nothing to clean; a missing folder exits 0. The size warning names the real folder and says what the clean keeps, and AGENTS.md matches.

No changelog line: a developer recipe, nothing a person running Kamosu sees.

Tested: just check, just test; a fake target folder through all three cases; a real build into a scratch folder, cleaned, rebuilt and served by just dev-start. Details in the issue's ledger.

🤖 Generated with Claude Code

https://claude.ai/code/session_013rPDLguMPPGfiX21SBq1Xg

dev-clean deleted the whole cargo target folder. Where CARGO_TARGET_DIR is shared by several projects, that took every project's finished programs with it. It now deletes only deps, build, incremental, .fingerprint and examples in each profile folder cargo marked with .cargo-lock, and keeps everything else. The size warning and AGENTS.md describe the new behaviour.

Closes #565

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013rPDLguMPPGfiX21SBq1Xg
@BattermanZ
BattermanZ merged commit 05c4b05 into dev Nov 16, 2026
1 check passed
@BattermanZ
BattermanZ deleted the fix/dev-clean-keeps-binaries branch November 16, 2026 15:55
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