core: don't configure package marked for lazy install
This commit is contained in:
parent
f70bcbcd4c
commit
b7923ad1d9
|
@ -1154,6 +1154,9 @@ path."
|
|||
(spacemacs-buffer/loading-animation)
|
||||
(let ((pkg-name (oref pkg :name)))
|
||||
(cond
|
||||
((oref pkg :lazy-install)
|
||||
(spacemacs-buffer/message
|
||||
(format "%S ignored since it can be lazily installed." pkg-name)))
|
||||
((and (oref pkg :excluded)
|
||||
(not (oref pkg :protected)))
|
||||
(spacemacs-buffer/message
|
||||
|
|
|
@ -795,6 +795,15 @@
|
|||
(spacemacs-buffer/message (m) ((:output nil))))
|
||||
(configuration-layer//configure-packages-2 `(,pkg)))))
|
||||
|
||||
(ert-deftest test-configure-packages-2--lazy-install-package-is-not-configured()
|
||||
(let ((pkg (cfgl-package "pkg" :name 'pkg :owner 'layer :lazy-install t))
|
||||
(mocker-mock-default-record-cls 'mocker-stub-record))
|
||||
(mocker-let
|
||||
((configuration-layer//configure-package (p) nil)
|
||||
(spacemacs-buffer/loading-animation nil ((:output nil)))
|
||||
(spacemacs-buffer/message (m) ((:output nil))))
|
||||
(configuration-layer//configure-packages-2 `(,pkg)))))
|
||||
|
||||
(ert-deftest
|
||||
test-configure-packages-2--local-package-w/-layer-owner-update-load-path()
|
||||
(let ((pkg (cfgl-package "pkg" :name 'pkg :owner 'layer1 :location 'local))
|
||||
|
|
Loading…
Reference in New Issue