diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-03 19:10:44 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-03 19:10:44 -0500 |
| commit | 05de8cae2aa738813d86b4a54307562b89b7bce1 (patch) | |
| tree | e29b8da71c3fa5433dcc02e401c137fbae73249f /modules/auth-config.el | |
| parent | 68645a5628c3c4921956897f21160e46196f209e (diff) | |
| download | dotemacs-05de8cae2aa738813d86b4a54307562b89b7bce1.tar.gz dotemacs-05de8cae2aa738813d86b4a54307562b89b7bce1.zip | |
fix: expand local ELPA mirror paths with expand-file-name
`(concat user-home-dir ".elpa-mirrors/")` was producing `/home/cjennings.elpa-mirrors/` because `getenv HOME` doesn't return a trailing slash on Linux. The local mirrors were silently dropping out of `package-archives` because `file-accessible-directory-p` couldn't find the bogus path.
I replaced the `concat` calls for `elpa-mirror-location` and `localrepo-location` with `expand-file-name`, which handles the slash for us. I also lifted the four per-archive subdirs into their own constants (`elpa-mirror-gnu-location`, `nongnu`, `melpa`, `stable-melpa`) so the archive registration block stops splicing `concat` strings inline.
I added `tests/test-early-init-paths.el`. It loads `early-init.el` against a temp HOME with the package side effects stubbed and asserts each constant and each `package-archives` entry resolves to the right path.
Diffstat (limited to 'modules/auth-config.el')
0 files changed, 0 insertions, 0 deletions
