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

Minimize tempfile churn #186

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Minimize tempfile churn #186

merged 3 commits into from
Nov 20, 2024

Conversation

mgree
Copy link
Contributor

@mgree mgree commented Nov 19, 2024

Closes #185.

Try was making way too many tempfiles. Now we store everything in the sandbox, with a tiny bit of nuance: $IGNORE_FILE needs to be created in advance to handle the args properly. So we create that temporary unconditionally. When running a command (the try() function), we'll move $IGNORE_FILE into the sandbox. When running try commit or try summary, we just delete $IGNORE_FILE at the end.

Cleanup per #35 should be easy once we have #93 sorted.

Copy link
Collaborator

@ezrizhu ezrizhu left a comment

Choose a reason for hiding this comment

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

lgtm 👍 🚀

@mgree mgree merged commit b63d1e7 into main Nov 20, 2024
21 checks passed
@mgree mgree deleted the tempfile-cleanup branch November 20, 2024 12:06
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.

Too many tempfiles
2 participants