Description
I have a VM with a small amount of RAM, 500MB. The /tmp
tmpfs on the system is 250MB. When running dotnet-install.sh
, extracting the zip fails due to running out of space (the zip is 134MB, extracting at least doubles that size, so it requires at least 268MB)
Why is /tmp
even used in the first place? I can perhaps understand it for the zip download, but why not just extract it directly to the output directory? (The best solution, in my opinion, would be piping the download of a tar.gz
into an extraction into the destination directory, requiring no temporary files at all...)
Also important to note is that the script fails to clean up after itself upon failure, leaving these hundred-MB files and folders lingering around in /tmp
.
Expected behavior: the cli successfully installs, because installation shouldn't depend on having a large amount of RAM.
Actual behavior: Failure due to lack of RAM allocated to the /tmp
tmpfs.