feat(justfile): add dev-clean / dev-clean-all teardown recipes #62

Merged
David merged 1 commit from feat/dev-clean-recipes into main 2026-06-13 19:46:07 +02:00
Owner

Adds the canonical dev-clean / dev-clean-all teardown recipes, per GOV-7 (governance template templates/justfile/cleanup.just).

  • dev-clean brings the compose stack down (docker compose -f compose.yml down --remove-orphans, which also drops the default network), removes this repo's three named volumes (dev-vervain-agent-cargo-registry, dev-vervain-agent-cargo-git, dev-vervain-agent-target) behind a docker volume ls membership check, and deletes the host-side target/ build dir with rm --recursive guarded by path exists (no sudo, no force).
  • dev-clean-all adds docker buildx prune --force (the documented buildx non-interactive flag). No image-removal step: this repo builds no -t-tagged local images (pre-commit runs an untagged docker build; the dev stack uses the compose-managed dev-vervain-agent-builder image).
  • Aligned the pre-existing clean (which ran sudo rm --recursive target) and old dev-clean (volumes only) recipes into this canonical pair, dropping the sudo/force escalation. The unrelated down stop recipe is left untouched.

Both guard every removal with an existence check and stay scoped to this repo (no host-global prune). Verified just --list parses and groups both under [cleanup].

Part of the GOV-7 rollout; tracked there rather than via a per-repo issue.

🤖 Generated with Claude Code

Adds the canonical `dev-clean` / `dev-clean-all` teardown recipes, per GOV-7 (governance template `templates/justfile/cleanup.just`). - `dev-clean` brings the compose stack down (`docker compose -f compose.yml down --remove-orphans`, which also drops the default network), removes this repo's three named volumes (`dev-vervain-agent-cargo-registry`, `dev-vervain-agent-cargo-git`, `dev-vervain-agent-target`) behind a `docker volume ls` membership check, and deletes the host-side `target/` build dir with `rm --recursive` guarded by `path exists` (no `sudo`, no force). - `dev-clean-all` adds `docker buildx prune --force` (the documented buildx non-interactive flag). No image-removal step: this repo builds no `-t`-tagged local images (pre-commit runs an untagged `docker build`; the dev stack uses the compose-managed `dev-vervain-agent-builder` image). - Aligned the pre-existing `clean` (which ran `sudo rm --recursive target`) and old `dev-clean` (volumes only) recipes into this canonical pair, dropping the `sudo`/force escalation. The unrelated `down` stop recipe is left untouched. Both guard every removal with an existence check and stay scoped to this repo (no host-global prune). Verified `just --list` parses and groups both under `[cleanup]`. Part of the GOV-7 rollout; tracked there rather than via a per-repo issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(justfile): add dev-clean / dev-clean-all teardown recipes
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 5m2s
Create release / Create release from merged PR (pull_request) Has been skipped
e7d67b0aff
Adds the canonical dev-clean / dev-clean-all teardown recipes under [group: 'cleanup'], replacing this repo's prior divergent `dev-clean` (volumes only) and `clean` (sudo rm target) recipes: dev-clean brings the compose stack down with `docker compose -f compose.yml down --remove-orphans` (also dropping the default network), removes this repo's three named volumes (dev-vervain-agent-cargo-registry, dev-vervain-agent-cargo-git, dev-vervain-agent-target) guarded by a `docker volume ls` membership check, and deletes the host-side target/ build dir via `rm --recursive` guarded by `path exists` (no sudo, no force); dev-clean-all then runs `docker buildx prune --force` (no image-removal step since this repo builds no `-t`-tagged local images). Both stay scoped to this repo with no host-global prune.

#GOV-7
David merged commit 5b5b6ddf26 into main 2026-06-13 19:46:07 +02:00
David deleted branch feat/dev-clean-recipes 2026-06-13 19:46:07 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-agent!62
No description provided.