-
Notifications
You must be signed in to change notification settings - Fork 993
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
[develop2] Cache clean #13050
[develop2] Cache clean #13050
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it safe? what happens if it raises in the middle of removal, will it leave some incomplete or inconsistent cache state? (or user just hits Ctrl-C/Ctrl-Break in the middle of the command).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the comment about the formatter and that the command required at least one argument saying what you want to clean.
@SSE4 I think this should be safe as we are not touching the database, if something goes wrong, a second execution would fix the clean that did not finish. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
package_list = conan_api.list.select(ref_pattern, package_query=args.package_query) | ||
conan_api.cache.clean(package_list, source=args.source, build=args.build, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love how clean this looks
Changelog: Feature: Add
conan cache clean
subcommand to clean build and source folders.Close #11562