From 26db046e81f5eac5719951be2169acfcad8f373d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belmant?= Date: Wed, 25 Oct 2023 12:08:00 +0200 Subject: [PATCH] Fix `parse_cache_header` signature change (#767) --- src/loading.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/loading.jl b/src/loading.jl index c6ace75a..d8512863 100644 --- a/src/loading.jl +++ b/src/loading.jl @@ -4,7 +4,11 @@ function pkg_fileinfo(id::PkgId) cachepath = origin.cachepath cachepath === nothing && return nothing, nothing, nothing provides, includes_requires, required_modules = try - Base.parse_cache_header(cachepath; srcfiles_only=true) + @static if VERSION ≥ v"1.11.0-DEV.683" + Base.parse_cache_header(cachepath) + else + Base.parse_cache_header(cachepath, srcfiles_only = true) + end catch return nothing, nothing, nothing end