Merge pull request #3429 from cli/log-fail-cache

hotfix: create cache dir in run view
This commit is contained in:
Nate Smith 2021-04-15 11:21:17 -05:00 committed by GitHub
commit bd663b5049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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