Cleanup other directories in .shiv
See original GitHub issueI’d like to be able to have a shiv option that would instruct the bootstrap code to clean out old directories in .shiv for the current app. Maybe:
shiv --delete-other-builds
With that option, when the first bootstrap of a build finished, the boostrap code would essentially run:
rm -rf ~/.shiv/the_app_name_*
Excluding the folder that contains the files for the currently running app.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:11 (7 by maintainers)
Top Results From Across the Web
shiv — shiv documentation
Shiv is a command line utility for building fully self-contained Python zipapps as outlined in PEP 441 but with all their dependencies included!...
Read more >Shiv - Let's Build a Version Control System! - Shatterealm
We encode the name to prevent any characters in the file path from screwing anything up, and de-duplicate the staging file because we...
Read more >Cleanup unused IDE directories - GoLand Guide - JetBrains
The IDE will automatically clean up any cache and log directories that were last updated more than 180 days ago. To trigger this...
Read more >Why is my other storage so high on my Mac? - Quora
So, it is recommended to clean up the Other storage to make room for new files on ... The “/” directory is not...
Read more >Delete files in one directory that do not exist in another ...
The other alternative would be to hold all filenames in /home/storage in an array and then simply grep -q "$fn" &>/dev/null <<<${array[@]} using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@luislew that’s awesome to hear! say hi to @borgstrom for me 😃
I went ahead and cut a PR with this feature, take it for a spin and let me know what you think 😃
Hey @rsyring, sorry that it’s taken me literal months to revisit this issue, but I think the --preamble idea I posed earlier will satisfy this request, take a look at my diff https://github.com/linkedin/shiv/compare/preamble?expand=1
I included an example script that cleans up old execution dirs:
Theoretically you could even pack another pyz into the pyz (though I haven’t tested this). Let me know what you think, if it works for you I will add some tests and cut a PR.