mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-05 18:20:29 -08: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:
parent
1adec8b10c
commit
c8d3d77b0b
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue