@@ -114,6 +114,17 @@ steps:
114114
115115 echo "--- Pkg.dev-ing (by path) the local copy of JuliaSyntax"
116116 export JULIA_PKG_PRECOMPILE_AUTO=0
117+ # Double dollar signs $$ needed here because of Buildkite stuff
118+ echo "Old JULIA_DEPOT_PATH: $${JULIA_DEPOT_PATH:?}"
119+ # On Windows, the separator is ;
120+ # On other platforms, the separator is :
121+ sep=$$(julia -e 'println(Sys.iswindows() ? ";" : ":")')
122+ # We change the depot path from `depot` to `depot:`
123+ # The trailing colon/semicolon makes sure we can re-use the existing stdlib pkgimages,
124+ # instead of needing to re-precompile them
125+ # https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_DEPOT_PATH
126+ export JULIA_DEPOT_PATH="$${JULIA_DEPOT_PATH:?}$${sep}"
127+ echo "New JULIA_DEPOT_PATH: $${JULIA_DEPOT_PATH:?}"
117128 julia -e 'import Pkg; pspec = Pkg.PackageSpec(path = "./JuliaSyntax"); Pkg.develop(pspec)'
118129
119130 echo "--- Testing JuliaSyntax on Julia {{matrix.julia_version}}"
@@ -195,7 +206,7 @@ steps:
195206 # The trailing colon/semicolon makes sure we can re-use the existing stdlib pkgimages,
196207 # instead of needing to re-precompile them
197208 # https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_DEPOT_PATH
198- export JULIA_DEPOT_PATH="$${JULIA_DEPOT_PATH:?}$$( sep) "
209+ export JULIA_DEPOT_PATH="$${JULIA_DEPOT_PATH:?}$${ sep} "
199210 echo "New JULIA_DEPOT_PATH: $${JULIA_DEPOT_PATH:?}"
200211 julia -e 'import Pkg; pspec = Pkg.PackageSpec(path = "./JuliaSyntax"); Pkg.develop(pspec)'
201212
0 commit comments