Skip to content

Commit

Permalink
Fix parse_cache_header signature change (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenity4 authored Oct 25, 2023
1 parent 94b41f4 commit 26db046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26db046

Please sign in to comment.