Skip to content

Commit

Permalink
strip out tree_hash for stdlibs that have have been freed in newer ju…
Browse files Browse the repository at this point in the history
…lia versions
  • Loading branch information
IanButterworth committed Oct 28, 2024
1 parent 116ba91 commit 982f8a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ end
####################

function load_tree_hash!(registries::Vector{Registry.RegistryInstance}, pkg::PackageSpec, julia_version)
if is_stdlib(pkg.uuid, julia_version) && pkg.tree_hash !== nothing
# manifests from newer julia versions might have stdlibs that are upgradable (FORMER_STDLIBS)
# that have tree_hash recorded, which we need to clear for this version where they are not upgradable
pkg.tree_hash = nothing
return pkg
end
tracking_registered_version(pkg, julia_version) || return pkg
hash = nothing
for reg in registries
Expand Down

0 comments on commit 982f8a4

Please sign in to comment.