mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
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:
@@ -58,7 +58,15 @@
|
|||||||
straight-vc-git-default-clone-depth '(1 single-branch)
|
straight-vc-git-default-clone-depth '(1 single-branch)
|
||||||
;; Install archives from forges instead of cloning them. Much faster and
|
;; Install archives from forges instead of cloning them. Much faster and
|
||||||
;; lighter.
|
;; 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
|
(with-eval-after-load 'straight
|
||||||
;; HACK: Doom relies on deferred compilation, which spares the user 20-50min
|
;; HACK: Doom relies on deferred compilation, which spares the user 20-50min
|
||||||
|
Reference in New Issue
Block a user