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

make sure tempfile is alive when it's used #2114

Merged
merged 2 commits into from
Jun 20, 2024
Merged

make sure tempfile is alive when it's used #2114

merged 2 commits into from
Jun 20, 2024

Conversation

RoyStegeman
Copy link
Member

@RoyStegeman RoyStegeman commented Jun 20, 2024

The first commit is the relevant one.

We create a tempfile to download files such as ekos to, and then move that file to eko.tar (or whatever the target path is). However, the moving is done outside the context manager, so if delete_on_failure is true, the tempfile that should be moved to eko.tar has already been deleted before it's moved.

@RoyStegeman RoyStegeman requested a review from andreab1997 June 20, 2024 13:31
@RoyStegeman RoyStegeman added the bug Something isn't working label Jun 20, 2024
@andreab1997
Copy link
Contributor

Looks good to me, thanks!

@RoyStegeman RoyStegeman merged commit 9c17171 into master Jun 20, 2024
8 checks passed
@RoyStegeman RoyStegeman deleted the rs_quickfix branch June 20, 2024 14:50
@RoyStegeman RoyStegeman mentioned this pull request Jun 27, 2024
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants