From f769fdf2df04bac696b7aa88cc84ba8d7735be55 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 2 Apr 2024 00:19:10 +0200 Subject: [PATCH] fix depot filter for avoiding relocation --- test/relocatedepot.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/relocatedepot.jl b/test/relocatedepot.jl index 1cc1ab5dc3e8d..3b7994d85d600 100644 --- a/test/relocatedepot.jl +++ b/test/relocatedepot.jl @@ -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 @show LOAD_PATH @show DEPOT_PATH pkg = Base.identify_package(pkgname)