Skip to content

Conversation

@konstin
Copy link
Member

@konstin konstin commented Oct 20, 2025

Add uv build --clear that behaves like rm -r ./dist && uv build to clear artifacts from previous builds. This avoids accidentally publishing the wrong artifacts and removes accumulated old builds.

See #10293 (comment)
Fixes #10293

Add `uv build --clear` that behaves like `rm -r ./dist && uv build` to clear artifacts from previous builds. This avoids accidentally publishing the wrong artifacts and removes accumulated old builds.

See #10293 (comment)
@konstin konstin requested a review from zanieb October 20, 2025 10:04
@konstin konstin added the enhancement New feature or improvement to existing functionality label Oct 20, 2025
@konstin konstin temporarily deployed to uv-test-registries October 20, 2025 10:07 — with GitHub Actions Inactive
cthoyt added a commit to cthoyt/cookiecutter-snekpack that referenced this pull request Oct 20, 2025
#[arg(long, conflicts_with = "list")]
pub force_pep517: bool,

/// Remove build artifacts from the output directory after a successful build.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be clearer that it'll remove stale build artifacts and not the new ones :)

@konstin konstin enabled auto-merge (squash) October 27, 2025 18:03
@konstin konstin temporarily deployed to uv-test-registries October 27, 2025 18:06 — with GitHub Actions Inactive
@konstin konstin merged commit 804f1ff into main Oct 27, 2025
98 of 99 checks passed
@konstin konstin deleted the konsti/uv-build-clear branch October 27, 2025 18:15
cthoyt added a commit to cthoyt/cookiecutter-snekpack that referenced this pull request Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Option to Remove Build Artifacts

3 participants