From ce103be2187cd74cc71a353db69215d120091067 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 1 Mar 2021 12:12:48 -0600 Subject: Don't be smart about bootstrapping straight.el --- early-init.el | 41 +++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/early-init.el b/early-init.el index dd09f16..dc91cba 100644 --- a/early-init.el +++ b/early-init.el @@ -213,32 +213,21 @@ (gitlab . "acdw")) straight-base-dir acdw/var-dir) -;; Run `straight''s bootstrap code, after gitting the code directly. -(if (not (executable-find "git")) - (error "No 'git' in $PATH!") - (call-process "git" nil - (get-buffer-create "*bootstrap-straight-messages*") - nil - "clone" - "https://github.com/raxod502/straight.el" - (expand-file-name "repos/straight.el" - straight-base-dir)) - (defvar bootstrap-version) - (let ((bootstrap-file - (expand-file-name - "repos/straight.el/bootstrap.el" - straight-base-dir)) - (bootstrap-version 5)) - (unless (file-exists-p bootstrap-file) - (with-current-buffer - (url-retrieve-synchronously - (concat - "https://raw.githubusercontent.com/" - "raxod502/straight.el/develop/install.el") - 'silent 'inhibit-cookies) - (goto-char (point-max)) - (eval-print-last-sexp))) - (load bootstrap-file nil 'nomessage))) +;; Run `straight''s bootstrap code +(defvar bootstrap-version) +(let ((bootstrap-file + (expand-file-name + "repos/straight.el/bootstrap.el" + straight-base-dir)) + (bootstrap-version 5)) + (unless (file-exists-p bootstrap-file) + (with-current-buffer + (url-retrieve-synchronously + "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" + 'silent 'inhibit-cookies) + (goto-char (point-max)) + (eval-print-last-sexp))) + (load bootstrap-file nil 'nomessage)) ;; `use-package' -- cgit 1.4.1-21-gabe81