question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add options to prune command

See original GitHub issue

What would you like?

We’d like some options added to the prune command that would allow some flexibility in regards to which versions it deletes. We would like to add this to our CI pipeline but would run into the issue where if two branches had different versions of Cypress running (e.g. one on 6.2.0 and one just updated to 6.2.1) that they would each delete the other install.

I was thinking something along the lines of one option that would allow you to disable deleting higher versions (e.g. an old branch with Cypress 3.6.0 runs and doesn’t kill our current version of 6.2.1) and an option to keep the last version or two of Cypress installed (e.g. one branch updates from 6.2.0 to 6.2.1 and it doesn’t delete 6.2.0 as it is just one version behind).

Why is this needed?

Allow running command as part of CI pipeline, see above.


I’d be willing to have a go at the PR if this feature sounds reasonable.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mjhenkescommented, Jan 14, 2022

We’ll be working automatic cache pruning as part of cypress provided browser binaries see issue #19278

0reactions
jasikparkcommented, Jan 13, 2022

It would be nice to have this feature so that there isn’t churn when moving between Cypress versions…

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker system prune - Docker Documentation
docker system prune: Remove all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes.
Read more >
Git Prune | Atlassian Git Tutorial
The git prune command is an internal housekeeping utility that cleans up unreachable or "orphaned" Git objects. Unreachable objects are those that are ......
Read more >
How to use '-prune' option of 'find' in sh? - Stack Overflow
You should now just append the following to the previous command: -print -o -path '/media' -prune. and the final command is: find /...
Read more >
Git - git-prune Documentation - Git SCM
git-prune - Prune all unreachable objects from the object database ... optionally with additional set of objects specified on the command line, ...
Read more >
How to Use prune to Clean Up Remote Branches in Git
"prune" is available as an option for the git fetch and git remote commands. (Don't confuse this with the stand-alone git prune command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found