Skip to content

Commit 0998ff6

Browse files
committed
Fix
1 parent 6af57a9 commit 0998ff6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

bin/run_julia

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ fi
66

77
export JULIA_PKG_SERVER_REGISTRY_PREFERENCE=eager
88

9+
# If any local project preferences file disables CondaPkg, forward that as an
10+
# env var so that Julia reads it at runtime even when activating a subproject
11+
# interactively (where @load_preference may have a stale baked-in value).
12+
for _lp in LocalPreferences.toml examples_cp/LocalPreferences.toml test/LocalPreferences.toml; do
13+
if grep -q 'backend = "Null"' "$_lp" 2>/dev/null; then
14+
export JULIA_CONDAPKG_BACKEND=Null
15+
break
16+
fi
17+
done
18+
919
if [[ $# -gt 0 ]]; then
1020
JULIA_ARGS=("$@")
1121
else

0 commit comments

Comments
 (0)