From dfd4dd5ba13455cdef3727caa6f84a1fe4d811d9 Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Tue, 21 Nov 2023 09:42:29 -0500 Subject: [PATCH] Fix PkgCacheInspector.jl for relocatable precompile files parse_cache_header now takes a second string argument after an IO https://github.com/JuliaLang/julia/pull/49866 --- src/PkgCacheInspector.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/PkgCacheInspector.jl b/src/PkgCacheInspector.jl index 4254af8..b4b846c 100644 --- a/src/PkgCacheInspector.jl +++ b/src/PkgCacheInspector.jl @@ -202,7 +202,12 @@ function info_cachefile(pkg::PkgId, path::String) try # isvalid_cache_header returns checksum id or zero isvalid_cache_header(io) == 0 && return ArgumentError("Invalid header in cache file $path.") - depmodnames = parse_cache_header(io)[3] + # https://github.com/JuliaLang/julia/pull/49866 + if VERSION >= v"1.11.0-DEV.946" # lower bound could be lower + depmodnames = parse_cache_header(io, path)[3] + else + depmodnames = parse_cache_header(io)[3] + end isvalid_file_crc(io) || return ArgumentError("Invalid checksum in cache file $path.") finally close(io)