From e151f4c9f7adfe385a2269003f6f7d4661900554 Mon Sep 17 00:00:00 2001 From: Michael Anckaert Date: Fri, 3 Sep 2021 16:17:28 +0200 Subject: Fix #11418 - Default TMPDIR to /tmp on OS X Signed-off-by: Michael Anckaert --- pkg/machine/qemu/options_darwin.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkg/machine/qemu') diff --git a/pkg/machine/qemu/options_darwin.go b/pkg/machine/qemu/options_darwin.go index 440937131..124358db8 100644 --- a/pkg/machine/qemu/options_darwin.go +++ b/pkg/machine/qemu/options_darwin.go @@ -2,14 +2,12 @@ package qemu import ( "os" - - "github.com/pkg/errors" ) func getRuntimeDir() (string, error) { tmpDir, ok := os.LookupEnv("TMPDIR") if !ok { - return "", errors.New("unable to resolve TMPDIR") + tmpDir = "/tmp" } return tmpDir, nil } -- cgit v1.2.3-54-g00ecf