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