Only resolve package :local-repo if relative path exists
This allows you to specify a :local-repo relative to the directory your packages.el is in. If it doesn't exist, it'll assume you meant a directory in ~/.emacs.d/.local/straight/repos
This commit is contained in:
parent
2deaafd03a
commit
aca1599a81
1 changed files with 7 additions and 3 deletions
|
@ -269,9 +269,13 @@ elsewhere."
|
|||
recipe
|
||||
;; Expand :local-repo from current directory
|
||||
(when local-repo
|
||||
(plist-put! plist :recipe
|
||||
(plist-put!
|
||||
plist :recipe
|
||||
(plist-put recipe :local-repo
|
||||
(expand-file-name local-repo ,(dir!)))))))
|
||||
(let ((local-path (expand-file-name local-repo ,(dir!))))
|
||||
(if (file-directory-p local-path)
|
||||
local-path
|
||||
local-repo)))))))
|
||||
(error
|
||||
(signal 'doom-package-error
|
||||
(cons ,(symbol-name name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue