julia
4e59e700 - loading: add a cache-fetch hook consulted before compiling a package (#62568)

Commit
51 days ago
loading: add a cache-fetch hook consulted before compiling a package (#62568) 🤖 Base.CACHE_FETCH_HOOK, when set by a later-loaded coordination package, is called at the moment require or parallel precompilation has determined that no valid compile cache exists and a package is about to be compiled. The hook may materialize a cachefile (e.g. by fetching it from a cache server keyed on the full build context, which the caller has at exactly this point: deps are loaded/compiled, flags and preferences known); the loader then rescans the cache candidates and revalidates them through the normal staleness machinery, so hook output is untrusted and a bad file degrades to a local compile. --------- Co-authored-by: Keno Fischer <Keno@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Author
Parents
Loading