From aef2a33da892455d4441a4d54772ebc38f54dfca Mon Sep 17 00:00:00 2001 From: Natalie Arellano Date: Wed, 23 Oct 2024 16:18:54 -0400 Subject: [PATCH] Try to fix exporter acceptance Signed-off-by: Natalie Arellano --- acceptance/exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceptance/exporter_test.go b/acceptance/exporter_test.go index 4b38e01ad..c29a8e30c 100644 --- a/acceptance/exporter_test.go +++ b/acceptance/exporter_test.go @@ -403,6 +403,7 @@ func testExporterFunc(platformAPI string) func(t *testing.T, when spec.G, it spe var err error cacheDir, err = os.MkdirTemp("", "cache") h.AssertNil(t, err) + h.AssertNil(t, os.Chmod(cacheDir, 0777)) // Override umask cacheFixtureDir := filepath.Join("testdata", "exporter", "cache-dir") h.AssertNil(t, fsutil.Copy(cacheFixtureDir, cacheDir)) @@ -433,7 +434,6 @@ func testExporterFunc(platformAPI string) func(t *testing.T, when spec.G, it spe "--env", "CNB_PLATFORM_API="+platformAPI, "--env", "CNB_REGISTRY_AUTH="+exportRegAuthConfig, "--network", exportRegNetwork, - "--user", "root", "--volume", fmt.Sprintf("%s:/cache", cacheDir), ), h.WithArgs(exportArgs...),