From 46d8f6291cec3161e0949547388e3d00ab7de3ef Mon Sep 17 00:00:00 2001 From: Michael Anckaert Date: Fri, 3 Sep 2021 16:17:28 +0200 Subject: [PATCH] Fix #11418 - Default TMPDIR to /tmp on OS X --- pkg/machine/qemu/options_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/machine/qemu/options_darwin.go b/pkg/machine/qemu/options_darwin.go index 440937131225..6ae6c183e73b 100644 --- a/pkg/machine/qemu/options_darwin.go +++ b/pkg/machine/qemu/options_darwin.go @@ -9,7 +9,7 @@ import ( func getRuntimeDir() (string, error) { tmpDir, ok := os.LookupEnv("TMPDIR") if !ok { - return "", errors.New("unable to resolve TMPDIR") + tmpDir = "/tmp" } return tmpDir, nil }