Repository navigation
Fix Qlot cache restore with Qlot >= 1.8 (dangling symlinks in .qlot) - #42
Conversation
Qlot 1.8 keeps sources in ~/.cache/qlot/ and symlinks them into .qlot/. Only .qlot/ is cached, so a cache hit restored dangling symlinks and the first quickload failed. Set QLOT_NO_CACHE=1 so Qlot copies sources into .qlot/, and bump the cache suffix to drop already broken caches.
|
Hi, thanks for the contribution. I'd prefer to add |
Also drop the stray 'path: |' line from the qlot-cache-paths default.
|
Thanks, done: the action now caches For the record, the previous version didn't re-download on a cache hit either: Like the existing I also removed a stray Tested with Qlot 1.8.4 on ubuntu-latest: a cold run, then a warm run that restored the cache, skipped |
|
Hmm, CI tests started to output this error: I believe this is not caused by your changes. I'll try to fix these error before merging the PR. |
|
Merged as part of #43 |
|
By the way, I've moved |
Only affects Qlot 1.8.0 or later, i.e. jobs that set
qlot-version: latestor a 1.8.x version. The defaultqlot-version(0.11.5) keeps sources inside.qlot/and isn't affected.With
cache: trueand Qlot >= 1.8.0, every run that hits the Qlot cache fails on the first quickload:The cache-miss run that saved the cache passes, so it looks flaky.
Cause: Qlot 1.8 moves sources into
~/.cache/qlot/and leaves symlinks in.qlot/dists/*/software/(src/cache.lisp,save-release-to-cache). We cache.qlot/but not~/.cache/qlot/, so the restored links are dangling.Fix:
~/.cache/qlot/to the Qlot cache paths, next to~/.cache/common-lisp/. Like that entry, it covers the default Unix location only: on Windows (UIOP puts the cache underxdg-data-home) or withQLOT_CACHE_DIRECTORYset, Qlot uses another directory.cache-suffixto v10, so broken caches already saved aren't reused.path: |line from the default cache paths.Testing: this repo's PR runs use the default
qlot-version, so they won't reproduce the bug. I ran a throwaway workflow in my fork (Qlot 1.8.4,sbcl-bin, qlfile withql alexandria): https://github.com/deril/setup-lisp/actions/runs/39813733122qlot install, and(ql:quickload :alexandria)loaded through the restored symlinks, passed on UbuntuThe macOS job failed in both attempts inside
qlot install(The alien function "ASN1_STRING_data" is undefined, an OpenSSL binding issue on the runner) before any caching, so it says nothing about this change. Windows isn't tested.