mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
This is an old issue that's haunted Doom for a while. I had initially planned to wait until the switch to Elpaca, but I decided to just sit down and solve this. This ensures package autoloads are always written in depth-first dependency order to Doom's profile init file, preventing load-order issues like the notorious void-function geiser-activate-implementation error. `geiser` needs to be built before any `geiser-*` plugins, since its plugins reference variables/functions in geiser's own autoloads, but there's no way to enforce package order in `straight--build-cache` currently, and subsequent package updates (or just deleting package directories by hand) can change the order of straight's build-cache in subtle ways. Fix: #7693 Fix: #7472