Skip to content

Minimize tempfile churn - #186

Merged
mgree merged 3 commits into
mainfrom
tempfile-cleanup
Nov 20, 2024
Merged

mgree merged 3 commits into
mainfrom
tempfile-cleanup

Conversation

@mgree

@mgree mgree commented Nov 19, 2024 •

Copy link
Copy Markdown
Contributor

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.

@ezrizhu ezrizhu left a comment

Copy link
Copy Markdown
Member

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
@mgree
mgree deleted the tempfile-cleanup branch November 20, 2024 12:06
ezrizhu pushed a commit that referenced this pull request Jan 13, 2025
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.
@mgree mgree mentioned this pull request Apr 14, 2025
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