fix(cli): doom upgrade: void-variable straight-repository-branch

'doom upgrade' naively evaluates straight's recipe so it can delete
it (so 'doom sync' will upgrade it), but the
`straight-repository-branch` reference will error out for users updating
Doom from before 8cafbe4 to a commit after it, since its value now lives
in `doom-straight`, which may not be loaded yet.

Rather than further embed this hack (and because I don't want to spend
more time on straight.el accommodations than I have to, since it'll be
replaced with Elpaca soon), I simply replace the reference with its
value.

Fix: #8140
Amend: 8cafbe4408
This commit is contained in:
Henrik Lissner
2024-11-03 14:12:41 -05:00
parent f425f2ff3d
commit 0b9342589b

View File

@ -15,7 +15,7 @@
:type 'core :type 'core
:recipe `(:host github :recipe `(:host github
:repo "radian-software/straight.el" :repo "radian-software/straight.el"
:branch ,straight-repository-branch :branch "develop"
:local-repo "straight.el" :local-repo "straight.el"
:files ("straight*.el")) :files ("straight*.el"))
:pin "33fb4695066781c634ff1c3c81ba96e880deccf7") :pin "33fb4695066781c634ff1c3c81ba96e880deccf7")