Skip to content

Commit

Permalink
fix: --no-cache on server DependencyBuildMode.never (#5583)
Browse files Browse the repository at this point in the history
Have the server disable Lake build cache fetches (via `--no-cache`) on
time-sensitive file opens (i.e.,, `DependencyBuildMode.never`).
  • Loading branch information
tydeu authored Oct 2, 2024
1 parent e3811fd commit 9dcd2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Server/FileWorker/SetupFile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial def runLakeSetupFile
: IO LakeSetupFileOutput := do
let mut args := #["setup-file", filePath.toString] ++ imports.map (toString ·.module)
if m.dependencyBuildMode matches .never then
args := args.push "--no-build"
args := args.push "--no-build" |>.push "--no-cache"
let spawnArgs : Process.SpawnArgs := {
stdin := Process.Stdio.null
stdout := Process.Stdio.piped
Expand Down

0 comments on commit 9dcd2ad

Please sign in to comment.