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 (#4062)

* strip out tree_hash for stdlibs that have have been freed in newer julia versions

* Update src/Operations.jl
  • Loading branch information
IanButterworth authored Oct 29, 2024
1 parent c0df25a commit 9f8e11a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ 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
# given regular stdlibs don't have tree_hash recorded
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 9f8e11a

Please sign in to comment.