|
106 | 106 | ;; have to explicitly clear the caches.
|
107 | 107 | (straight--reset-caches)
|
108 | 108 |
|
109 |
| -;; First we register (and build) straight.el itself. |
110 |
| -(straight-use-package `(straight :type git :host github |
111 |
| - :repo ,(format "%s/straight.el" |
112 |
| - straight-repository-user) |
113 |
| - :files ("straight*.el") |
114 |
| - :branch ,straight-repository-branch)) |
115 |
| - |
116 | 109 | ;; Reset the tracking variable for `straight-recipe-repositories'. The
|
117 | 110 | ;; user can customize `straight-initial-recipe-repositories' to change
|
118 | 111 | ;; what is added here, or set it to nil and then register their own
|
119 | 112 | ;; recipe repositories later. Either way, it's a requirement that
|
120 | 113 | ;; anything added to this variable be added during every init, so it's
|
121 | 114 | ;; okay to clear this.
|
| 115 | +;; |
| 116 | +;; Need to clear the recipe repositories before registering the |
| 117 | +;; straight.el recipe, otherwise if recipe inheritance is enabled, the |
| 118 | +;; recipe repository names from last init may be looked up in |
| 119 | +;; themselves (looking at you el-get) which is no good. |
122 | 120 | (setq straight-recipe-repositories nil)
|
123 | 121 |
|
| 122 | +;; First we register (and build) straight.el itself. |
| 123 | +(straight-use-package `(straight :type git :host github |
| 124 | + :repo ,(format "%s/straight.el" |
| 125 | + straight-repository-user) |
| 126 | + :files ("straight*.el") |
| 127 | + :branch ,straight-repository-branch)) |
| 128 | + |
124 | 129 | ;; Now let's clone any initially configured recipe repositories. We
|
125 | 130 | ;; used to do this before straight.el, "so that any dependencies of
|
126 | 131 | ;; straight.el can be looked up correctly", but straight.el doesn't
|
|
0 commit comments