PkgCacheInspector.jl
PkgCacheInspector.jl copied to clipboard
`Error reading package image file` on `v1.9.2+`
Same error occurs also on v1.9.3, v1.10-beta3
, but it works on v1.9.1
.
Here I tested with the DocStringExtensions
dependency of PkgCacheInsepctor.jl
.
PkgCacheInspector.jl|main ⇒ jl --project
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.2 (2023-07-05)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using PkgCacheInspector
julia> info_cachefile("DocStringExtensions")
ERROR: Error reading package image file.
Stacktrace:
[1] info_cachefile(pkg::Base.PkgId, path::String, depmods::Vector{Any}, isocache::Bool)
@ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:190
[2] macro expansion
@ ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:222 [inlined]
[3] macro expansion
@ ./lock.jl:267 [inlined]
[4] info_cachefile(pkg::Base.PkgId, path::String)
@ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:199
[5] info_cachefile(pkg::Base.PkgId)
@ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:236
[6] info_cachefile(pkgname::String)
@ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:256
[7] top-level scope
@ REPL[2]:1
I think this report here is related: https://github.com/JuliaLang/julia/issues/53570#issuecomment-2096980550
I can also reproduce that with other packages, e.g. info_cachefile("Revise")
gives the same error, but only after invoking it twice.
I have looked a bit into this issue (using v1.12 master). The error seems to be coming from here: https://github.com/JuliaLang/julia/blob/25c8128d079a48d2e964d47dd9d5e39a7d3641d6/src/staticdata.c#L3666-L3669
In particular, its always the checksum check there that fails, but I haven't gotten any further.
I can also reproduce, e.g. info_cachefile("Revise") gives the same error, but only after invoking it twice on Julia Nightly.