Skip to content

Commit 9f8e11a

Browse files
strip out tree_hash for stdlibs that have have been freed in newer julia versions (#4062)
* strip out tree_hash for stdlibs that have have been freed in newer julia versions * Update src/Operations.jl
1 parent c0df25a commit 9f8e11a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Operations.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ end
247247
####################
248248

249249
function load_tree_hash!(registries::Vector{Registry.RegistryInstance}, pkg::PackageSpec, julia_version)
250+
if is_stdlib(pkg.uuid, julia_version) && pkg.tree_hash !== nothing
251+
# manifests from newer julia versions might have stdlibs that are upgradable (FORMER_STDLIBS)
252+
# that have tree_hash recorded, which we need to clear for this version where they are not upgradable
253+
# given regular stdlibs don't have tree_hash recorded
254+
pkg.tree_hash = nothing
255+
return pkg
256+
end
250257
tracking_registered_version(pkg, julia_version) || return pkg
251258
hash = nothing
252259
for reg in registries

0 commit comments

Comments
 (0)