Skip to content

Commit 4d155c7

Browse files
committed
fixup parse_cache_header for v1.11
1 parent 6552676 commit 4d155c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PkgCacheInspector.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ function info_cachefile(pkg::PkgId, path::String)
202202
try
203203
# isvalid_cache_header returns checksum id or zero
204204
isvalid_cache_header(io) == 0 && return ArgumentError("Invalid header in cache file $path.")
205-
depmodnames = parse_cache_header(io)[3]
205+
@static if VERSION >= v"1.11-DEV.660"
206+
depmodnames = parse_cache_header(io, path)[3]
207+
else
208+
depmodnames = parse_cache_header(io)[3]
209+
end
206210
isvalid_file_crc(io) || return ArgumentError("Invalid checksum in cache file $path.")
207211
finally
208212
close(io)

0 commit comments

Comments
 (0)