Prioritize emacs-mirror over melpa/elpa/etc
We can't be certain where MELPA/ELPA packages come from, but occasionally, their hosted on unstable servers (savannah) or git servers with certain features disabled (as is the case for paredit's not allowing shallow clones). Trust in emacsmirror, and we can be more certain the package is coming from github. This may trigger a rebuild of your packages!
This commit is contained in:
parent
4dceae1826
commit
ed5c7a21d7
1 changed files with 16 additions and 6 deletions
|
@ -169,12 +169,22 @@ uses a straight or package.el command directly).")
|
||||||
(funcall call "git" "reset" "--hard" pin)))))))))
|
(funcall call "git" "reset" "--hard" pin)))))))))
|
||||||
(require 'straight (concat repo-dir "/straight.el"))
|
(require 'straight (concat repo-dir "/straight.el"))
|
||||||
(doom-log "Initializing recipes")
|
(doom-log "Initializing recipes")
|
||||||
(with-temp-buffer
|
(mapc #'straight-use-recipes
|
||||||
(insert-file-contents (doom-path repo-dir "bootstrap.el"))
|
'((org-elpa :local-repo nil)
|
||||||
;; Don't install straight for us -- we've already done that -- only set
|
;; Give emacs-mirror higher priority than MELPA, because who knows
|
||||||
;; up its recipe repos for us.
|
;; where MELPA packages come from.
|
||||||
(eval-region (search-forward "(require 'straight)")
|
(emacsmirror-mirror :type git :host github
|
||||||
(point-max)))))
|
:repo "emacs-straight/emacsmirror-mirror"
|
||||||
|
:build nil)
|
||||||
|
(melpa :type git :host github
|
||||||
|
:repo "melpa/melpa"
|
||||||
|
:build nil)
|
||||||
|
(gnu-elpa-mirror :type git :host github
|
||||||
|
:repo "emacs-straight/gnu-elpa-mirror"
|
||||||
|
:build nil)
|
||||||
|
(el-get :type git :host github
|
||||||
|
:repo "dimitri/el-get"
|
||||||
|
:build nil)))))
|
||||||
|
|
||||||
(defun doom--ensure-core-packages (packages)
|
(defun doom--ensure-core-packages (packages)
|
||||||
(doom-log "Installing core packages")
|
(doom-log "Installing core packages")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue