Skip to content

Commit

Permalink
fix depot filter for avoiding relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Apr 2, 2024
1 parent a60f342 commit db64a5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/relocatedepot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ if !test_relocated_depot
test_harness(empty_depot_path=false) do
push!(LOAD_PATH, @__DIR__)
# skip this dir to make the pkgimage not relocatable
filter!(!=(@__DIR__), DEPOT_PATH)
filter!(DEPOT_PATH) do depot
!startswith(@__DIR__, depot)
end
pkg = Base.identify_package(pkgname)
cachefiles = Base.find_all_in_cache_path(pkg)
rm.(cachefiles, force=true)
Expand Down

0 comments on commit db64a5d

Please sign in to comment.