Create fix and write tests for Snap package manager bug #10407
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Background info:
The original issue was that starting minikube installed via Snap (package manager) would result in the error:
In this case minikube copies a memory asset to the /tmp folder for Docker to later copy. Snap prevents Docker from seeing minikubes file and the above error occurs.
This issue was attempted to be fixed in #10042, the correct way to solve this issue is to check if the binary is installed via Snap, and if it is, writes the memory asset to the users home directory instead. However, there was a bug included in the PR where instead of setting the tmp directory to the users home directory, it would try to find an env variable by the name of the users home directory and set that as the tmp directory. This env was not found and would return an empty string, passing an empty string to the function would fallback to using the default tmp directory and would fail.
The text was updated successfully, but these errors were encountered: