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

fix(cli): Prevent temporary file issues in "package download" #4314

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Nov 16, 2023

tempfile::NamedTempFile s can not be moved between different file
systems.

Many OSes create temporary files on a separate file system, which leads
to errors when downloading.

This commit changes things to just use a regular file instead.

tempfile::NamedTempFile s can not be moved between different file
systems.

Many OSes create temporary files on a separate file system, which leads
to errors when downloading.

This commit changes things to just use a regular file instead.
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan left a comment

Choose a reason for hiding this comment

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

LGTM.

The only thing we might want to think about is automatically cleaning up the temporary file if there is an error, but that's not a blocker.

@Michael-F-Bryan Michael-F-Bryan merged commit dd031ad into master Nov 16, 2023
53 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the fix-cli-package-download branch November 16, 2023 12:19
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.

2 participants