Skip to content

Commit

Permalink
Reduce verbosity of first-time install
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed May 25, 2021
1 parent b074133 commit 4563f13
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions core/core-packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ uses a straight or package.el command directly).")
(lambda (&rest args)
(print! "%s" (cdr (apply #'doom-call-process args))))
(lambda (&rest args)
(message "%s" (cdr (apply #'doom-call-process args)))))))
(apply #'doom-call-process args)))))
(unless (file-directory-p repo-dir)
(save-match-data
(unless (executable-find "git")
Expand Down Expand Up @@ -159,14 +159,16 @@ uses a straight or package.el command directly).")
"--branch" straight-repository-branch))
(make-directory repo-dir 'recursive)
(let ((default-directory repo-dir))
;; git init's -b switch was introduced in 2.28. As much as I'd
;; like to, the dependency is unavoidable because straight.el
;; uses it internally.
(funcall call "git" "init" "-b" straight-repository-branch)
(funcall call "git" "remote" "add" "origin" repo-url
"--master" straight-repository-branch)
(funcall call "git" "fetch" "origin" pin
"--depth" (number-to-string depth)
"--no-tags")
(funcall call "git" "reset" "--hard" pin)))))))
(print! (success "Done!"))))
(funcall call "git" "reset" "--hard" pin)))))))))
(require 'straight (concat repo-dir "/straight.el"))
(doom-log "Initializing recipes")
(with-temp-buffer
Expand All @@ -185,11 +187,12 @@ uses a straight or package.el command directly).")
(straight-override-recipe (cons name recipe))
(when-let (local-repo (plist-get recipe :local-repo))
(setq repo local-repo)))
;; Only clone the package, don't build them. Straight hasn't been fully
;; configured by this point.
(straight-use-package name nil t)
(print-group!
;; Only clone the package, don't build them. Straight hasn't been fully
;; configured by this point.
(straight-use-package name nil t))
;; In case the package hasn't been built yet.
(or (member (directory-file-name (straight--build-dir "straight"))
(or (member (directory-file-name (straight--build-dir (symbol-name name)))
load-path)
(add-to-list 'load-path (directory-file-name (straight--repos-dir repo)))))))

Expand Down

0 comments on commit 4563f13

Please sign in to comment.