From 56282bf645ea3a6db39437a821513c6759636018 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Thu, 15 Jul 2021 10:16:24 -0400 Subject: [PATCH] Fix layout tests on macos (#384) --- pkg/publish/layout_test.go | 2 +- pkg/publish/multi_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/publish/layout_test.go b/pkg/publish/layout_test.go index 59e34cd0ee..d46e21c0e0 100644 --- a/pkg/publish/layout_test.go +++ b/pkg/publish/layout_test.go @@ -31,7 +31,7 @@ func TestLayout(t *testing.T) { } importpath := "github.com/Google/go-containerregistry/cmd/crane" - tmp, err := ioutil.TempDir("", "ko") + tmp, err := ioutil.TempDir("/tmp", "ko") if err != nil { t.Fatal(err) } diff --git a/pkg/publish/multi_test.go b/pkg/publish/multi_test.go index 71b178f03d..c819066de8 100644 --- a/pkg/publish/multi_test.go +++ b/pkg/publish/multi_test.go @@ -42,7 +42,7 @@ func TestMulti(t *testing.T) { tp := NewTarball(fp.Name(), repoName, md5Hash, []string{}) - tmp, err := ioutil.TempDir("", "ko") + tmp, err := ioutil.TempDir("/tmp", "ko") if err != nil { t.Fatal(err) }