Repository navigation
dev-clean keeps finished programs in a shared target folder - #621
Merged
Merged
Conversation
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
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.
Closes #565
just dev-cleandeleted the whole cargo target folder. On a machine whereCARGO_TARGET_DIRis shared by several projects, that removed every project's finished programs, andjust dev-statusrecommends 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, andAGENTS.mdmatches.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 byjust dev-start. Details in the issue's ledger.🤖 Generated with Claude Code
https://claude.ai/code/session_013rPDLguMPPGfiX21SBq1Xg