Skip to content

fix: clean-debug.sh ignores CARGO_TARGET_DIR #913

Closed

Description

@EVWorth

scripts/clean-debug.sh always cleans <checkout>/src-tauri/target/debug. If CARGO_TARGET_DIR points somewhere else, for example a target directory shared by several worktrees, the script reports nothing to clean and leaves the real build output alone.

Reproduce

CARGO_TARGET_DIR=/some/shared/target bash scripts/clean-debug.sh
# Nothing to clean: <worktree>/src-tauri/target/debug does not exist.

Fix

Use ${CARGO_TARGET_DIR:-$root/src-tauri/target}/debug as the directory to clean.

Activity

  1. added
    bug
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions