Skip to content

Commit 5692ee2

Browse files
DilumAluthgetopolarity
authored andcommitted
Edit JULIA_DEPOT_PATH so we can re-use stdlib pkgimages
1 parent 0767950 commit 5692ee2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pipelines/main/misc/juliasyntax.test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ steps:
186186
187187
echo "--- Pkg.dev-ing (by path) the local copy of JuliaSyntax"
188188
export JULIA_PKG_PRECOMPILE_AUTO=0
189+
echo "Old JULIA_DEPOT_PATH: ${JULIA_DEPOT_PATH:?}"
190+
# On Windows, the separator is ;
191+
# On other platforms, the separator is :
192+
sep=$(julia -e 'println(Sys.iswindows() ? ";" : ":")')
193+
# We change the depot path from `depot` to `depot:`
194+
# The trailing colon/semicolon makes sure we can re-use the existing stdlib pkgimages,
195+
# instead of needing to re-precompile them
196+
# https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_DEPOT_PATH
197+
export JULIA_DEPOT_PATH="${JULIA_DEPOT_PATH:?}$(sep)"
198+
echo "New JULIA_DEPOT_PATH: ${JULIA_DEPOT_PATH:?}"
189199
julia -e 'import Pkg; pspec = Pkg.PackageSpec(path = "./JuliaSyntax"); Pkg.develop(pspec)'
190200
191201
echo "--- Testing JuliaSyntax on Julia {{matrix.julia_version}}"

0 commit comments

Comments
 (0)