Skip to content

Implement cleanup of temporary plugin directories on next command execution #473

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

Open
wants to merge 3 commits into
base: v0.6.x
Choose a base branch
from

Conversation

Priyanka-Chatterjee-2000
Copy link
Contributor

@Priyanka-Chatterjee-2000 Priyanka-Chatterjee-2000 commented Jul 20, 2025

This change depends on pipe-fittings: turbot/pipe-fittings#741

Copy link
Contributor

@pskrbasu pskrbasu left a comment

Choose a reason for hiding this comment

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

IMO doing this cleanup in the plugin cmd is better rather than in rootCmd.

Steampipe - https://github.com/turbot/steampipe/blob/develop/cmd/plugin.go#L78-L82

…anup across multiple commands. This ensures that any leftover temporary directories from previous crashes or interrupted installations are removed before executing plugin operations.
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.

Cleanup tmp-* directories in the plugin directory from previous crashes
3 participants