summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDaniel Thornton <dthornton@vmware.com>2021-01-01 22:18:59 -0500
committerGitHub <noreply@github.com>2021-01-01 22:18:59 -0500
commit00a1b771a844063f8dbeceb13b70f3cb2f15b5e0 (patch)
treedcf0ee0e595814e89cb912dbe8789e73518b3819 /runtime
parent52b326c040fa0e41d380b2a437b7c36d16fe260f (diff)
Update runtime/ui/app.go
Co-authored-by: Changsu <imcxsu@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ui/app.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/ui/app.go b/runtime/ui/app.go
index 9897b68..1360012 100644
--- a/runtime/ui/app.go
+++ b/runtime/ui/app.go
@@ -133,6 +133,7 @@ func newApp(app *tview.Application, analysis *image.AnalysisResult, cache filetr
// Run is the UI entrypoint.
func Run(analysis *image.AnalysisResult, treeStack filetree.Comparer, isCNB bool) error {
cfg := zap.NewDevelopmentConfig()
+ os.MkdirAll("/tmp/dive", os.ModePerm)
cfg.OutputPaths = []string{"/tmp/dive/debug.out"}
logger, err := cfg.Build()
if err != nil {