From b793fb5642a1d5fe2f6bb20d9c7e8a298837aa32 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 Sep 2025 19:19:42 -0400 Subject: [PATCH] tweak: do *not* download package archives by default From this point on, Straight will *not* download packages from tarballs by default. There are too many edge cases for this that catch up beginners who have BSD tar installed and get undecipherable tar errors, and Straight offers no fallback or easy way to change what tar executable it uses. Packages that have already been installed won't be affected until the next time they are updated/reinstalled. Users can still opt back into tarballs by adding this to $DOOMDIR/packages.el: (setq straight-vc-use-snapshot-installation t) Amend: 8cdddd87d948 Fix: #8530 --- lisp/doom-straight.el | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lisp/doom-straight.el b/lisp/doom-straight.el index 58e4ec25d..c590191cd 100644 --- a/lisp/doom-straight.el +++ b/lisp/doom-straight.el @@ -55,18 +55,7 @@ ;; no affect on packages that are pinned, however (run 'doom sync --gc' to ;; compact those after-the-fact). Some packages break when shallow cloned ;; (like magit and org), but we'll deal with that elsewhere. - straight-vc-git-default-clone-depth '(1 single-branch) - ;; Install archives from forges instead of cloning them. Much faster and - ;; lighter. - straight-vc-use-snapshot-installation - ;; REVIEW: Add GNU tar checks here? - (and (executable-find "tar") - ;; Windows and BSD Linux are certain to have incompatible versions of - ;; tar out of the box, and straight gives us no way to customize the - ;; tar executable it uses, so we simply opt out of snapshots there. - (not (featurep :system 'windows)) - (not (featurep :system 'bsd)) - t)) + straight-vc-git-default-clone-depth '(1 single-branch)) (with-eval-after-load 'straight ;; HACK: Doom relies on deferred compilation, which spares the user 20-50min