Skip to content

Commit

Permalink
Fix parse_cache_header signature change
Browse files Browse the repository at this point in the history
  • Loading branch information
serenity4 committed Oct 23, 2023
1 parent 94b41f4 commit 666883b
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"

Check warning on line 7 in src/loading.jl

View check run for this annotation

Codecov / codecov/patch

src/loading.jl#L7

Added line #L7 was not covered by tests
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 666883b

Please sign in to comment.