diff --git a/src/PkgCacheInspector.jl b/src/PkgCacheInspector.jl index 4254af8..5a239d9 100644 --- a/src/PkgCacheInspector.jl +++ b/src/PkgCacheInspector.jl @@ -202,7 +202,11 @@ 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] + @static if VERSION >= v"1.11-DEV.683" + 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)