Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to purge orphaned packages and artifacts #125

Open
gokuldas opened this issue Dec 8, 2023 · 0 comments
Open

Option to purge orphaned packages and artifacts #125

gokuldas opened this issue Dec 8, 2023 · 0 comments

Comments

@gokuldas
Copy link

gokuldas commented Dec 8, 2023

There currently doesn't seem to be any option to remove the packages and other artifacts from the cache, for just the scripts that don't exist anymore. The only available option is --clear-cache, which clears the entire cache, including those of the scripts that are still live.

Rationale: If you move a script from one location to another and execute it, rust-script creates a new package in the cache and leaves the old one orphaned. A user may wish to clear just the orphaned package and artifacts without losing all the useful objects in the cache.

Suggestion: Add a --gc option to do this.

Thank you!

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

No branches or pull requests

1 participant