Skip to content

Conversation

@moliholy
Copy link
Collaborator

@moliholy moliholy commented Oct 7, 2025

Closes #659.

This PR forces the cache removal when --all is specified. Rationale: when selecting one by one the artifacts to remove from the cache, no extra confirmation is done. However, when selecting --all a confirmation is required, which prevents scripts to work properly.

My proposal is to directly remove them all, instead of adding an extra flag. I think that second options adds close to zero value, and hence I prefer to keep things simple.

@moliholy moliholy requested a review from AlexD10S October 7, 2025 22:53
@moliholy moliholy self-assigned this Oct 7, 2025
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 77.33%. Comparing base (259ca3a) to head (49a8506).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/commands/clean.rs 50.00% 0 Missing and 1 partial ⚠️
@@            Coverage Diff             @@
##             main     #660      +/-   ##
==========================================
- Coverage   77.34%   77.33%   -0.02%     
==========================================
  Files         109      109              
  Lines       25110    25073      -37     
  Branches    25110    25073      -37     
==========================================
- Hits        19422    19389      -33     
  Misses       3713     3713              
+ Partials     1975     1971       -4     
Files with missing lines Coverage Δ
crates/pop-cli/src/commands/clean.rs 81.77% <50.00%> (-1.05%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@AlexD10S AlexD10S left a comment

Choose a reason for hiding this comment

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

Looks good! I agree, improving the tool to work better with scripts is definitely worth it.

@moliholy moliholy merged commit 6a98c9b into main Oct 8, 2025
18 of 19 checks passed
@moliholy moliholy deleted the feat/cache-remove-all branch October 8, 2025 07:39
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.

Make pop clean cache shell-compatible

3 participants