From a2f4f725af9c9b5626508192a7631bad7d3ace10 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 15 Apr 2021 11:15:03 -0500 Subject: [PATCH] create cache dir --- pkg/cmd/run/view/view.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cmd/run/view/view.go b/pkg/cmd/run/view/view.go index 131c73a82..f9a7f44f7 100644 --- a/pkg/cmd/run/view/view.go +++ b/pkg/cmd/run/view/view.go @@ -45,6 +45,11 @@ func (rlc) Exists(path string) bool { return true } func (rlc) Create(path string, content io.ReadCloser) error { + err := os.MkdirAll(filepath.Dir(path), 0755) + if err != nil { + return fmt.Errorf("could not create cache: %w", err) + } + out, err := os.Create(path) if err != nil { return err