From a0fc7bad5a37ee365cf84255b557938284b37f95 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 7 Sep 2022 16:46:09 +0200 Subject: [PATCH] fix(cli): create doom directories early This is a regression from 948f946, where a bunch of mkdir calls were removed prematurely. In v3, other processes are responsible for creating these directories, but those haven't been implemented yet. Fix: #6756 Amend: 948f9461a730 --- lisp/doom-cli.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/doom-cli.el b/lisp/doom-cli.el index 017fae7d8..a298433c0 100644 --- a/lisp/doom-cli.el +++ b/lisp/doom-cli.el @@ -13,6 +13,12 @@ (setq gc-cons-threshold 134217728 ; 128mb gc-cons-percentage 1.0) ; DEPRECATED: backported from 29 + ;; Create all our core directories to quell file errors. + (mapc (doom-rpartial #'make-directory 'parents) + (list doom-local-dir + doom-data-dir + doom-cache-dir)) + ;; UX: Ensure errors are sufficiently verbose from this point on. (when (setq init-file-debug (getenv-internal "DEBUG")) (setq debug-on-error t