fix(cli): opt out of snapshots on Windows/BSD systems

At least until straight lets us customize the tar executable (or we add
a GNU tar check).
This commit is contained in:
Henrik Lissner
2025-09-09 23:45:30 -04:00
parent 1adec8b10c
commit c8d3d77b0b

View File

@@ -58,7 +58,15 @@
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 (and (executable-find "tar") t))
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))
(with-eval-after-load 'straight
;; HACK: Doom relies on deferred compilation, which spares the user 20-50min