From 89e02c1c2b8e8961f38a4bd8ac169036c2e790fa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 19 Jun 2022 01:17:06 +0200 Subject: [PATCH] fix(cli): wrong-number-of-args error on 'doom upgrade' When I added call! to the DSL, I forgot to update doom-cli-call calls. This should quell these errors when running 'doom upgrade': x There was an unexpected runtime error Message: Wrong number of arguments Details: (((cl-struct-doom-cli-context-tags cl-struct-doom-cli-option-... Backtrace: (doom-cli-call ("doom" "sync" "-u")) (cond (packages\? (doom-cli-call sync-cmd) (doom-print (doom-print-... Amend: 6c0b7e1530a6 --- core/cli/upgrade.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cli/upgrade.el b/core/cli/upgrade.el index 953182791..dce0119d0 100644 --- a/core/cli/upgrade.el +++ b/core/cli/upgrade.el @@ -31,10 +31,10 @@ following shell commands: doom clean doom sync -u" (let* ((force? (doom-cli-context-suppress-prompts-p context)) - (sync-cmd `("doom" "sync" "-u"))) + (sync-cmd '("sync" "-u"))) (cond (packages? - (doom-cli-call sync-cmd) + (call! sync-cmd) (print! (success "Finished upgrading Doom Emacs"))) ((doom-cli-upgrade force? force?) @@ -44,7 +44,7 @@ following shell commands: (exit! "doom" "upgrade" "-p" (if force? "--force"))) ((print! "Doom is up-to-date!") - (doom-cli-call sync-cmd))))) + (call! sync-cmd))))) ;;