fix(cli): doctor: false positive 'X.elc is out-of-date' warnings

The doctor would look for stale byte-code in *all* build directories,
which was excessive and produced many false positives for folks who use
multiple versions of Emacs or have recently up/downgraded.
This commit is contained in:
Henrik Lissner 2022-09-26 02:09:20 +02:00
parent 07171185bb
commit 3f16c82877
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -141,7 +141,8 @@ in."
(print! (start "Checking for stale elc files..."))
(elc-check-dir doom-core-dir)
(elc-check-dir doom-local-dir)
(elc-check-dir doom-modules-dir)
(elc-check-dir (doom-path doom-local-dir "straight" straight-build-dir))
(print! (start "Checking for problematic git global settings..."))
(if (executable-find "git")