Skip to content

Commit 00583d3

Browse files
committed
[Runner] Fix bootstrap
1 parent 0aa48cc commit 00583d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Runner.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,9 @@ function runner_setup!(workspaces, mappings, workspace_root, verbose, kwargs, pl
14891489
if !isdir(ccache_dir())
14901490
mkpath(ccache_dir())
14911491
end
1492-
push!(workspaces, ccache_dir() => envs["CCACHE_DIR"])
1492+
# During bootstrap `CCACHE_DIR` may not be defined, we provide a
1493+
# fallback for that case, otherwise rely on the environment variable.
1494+
push!(workspaces, ccache_dir() => get(envs, "CCACHE_DIR", "/root/.ccache"))
14931495
end
14941496

14951497
return platform, envs, shards

0 commit comments

Comments
 (0)