Skip to content

Commit

Permalink
Test fix: handle if tested Pkg is shipped version (#4182)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Mar 2, 2025
1 parent 61115be commit 60e3185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ end

function copy_this_pkg_cache(new_depot)
source = joinpath(Base.DEPOT_PATH[1], "compiled", "v$(VERSION.major).$(VERSION.minor)", "Pkg")
isdir(source) || return # doesn't exist if using shipped Pkg (e.g. Julia CI)
dest = joinpath(new_depot, "compiled", "v$(VERSION.major).$(VERSION.minor)", "Pkg")
mkpath(dirname(dest))
cp(source, dest)
Expand Down

0 comments on commit 60e3185

Please sign in to comment.