Currently, we use odo version -o json in order to figure out if podman is installed on the user's system.
We depend on a library called which which can be used to search the user's PATH for the podman binary. This means we don't need to rely on odo to check if podman is installed.
We will need to be careful, since on Windows (and I'm guessing macOS as well) odo version -o json reports that podman is not installed if the binary is present, but podman machine doesn't exist. In this PR, I'm trying to improve the error message in this case. We can probably check if the podman machine has been created by using the podman CLI, and alert the user somehow if it isn't.
Currently, we use
odo version -o jsonin order to figure out if podman is installed on the user's system.We depend on a library called
whichwhich can be used to search the user's PATH for thepodmanbinary. This means we don't need to rely onodoto check ifpodmanis installed.We will need to be careful, since on Windows (and I'm guessing macOS as well)
odo version -o jsonreports that podman is not installed if the binary is present, but podman machine doesn't exist. In this PR, I'm trying to improve the error message in this case. We can probably check if the podman machine has been created by using the podman CLI, and alert the user somehow if it isn't.